reading out pin status

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello guys,

   

just wanted to write a status to a pin, and to read out status of a pin.
Followed the datasheet and used Pin_Write() and Pin_Read, but i am always getting back: "implicit declaration of function ... is invalid in C99"

   

what am i doing wrong?

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Probably a name typo, initially the pin is named Pin_1. So when you do not change the name yourself you'll have to write Pin_1_Write(). Take care to have the "Hardware connection" unchecked.

   

 

   

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Propably you are either not including the project header file, or you write the function name wrong.

   

Edit: just found a video about this very subject: https://www.youtube.com/watch?v=UK5WOM1HAac

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Is this before you compile the program or after? If it is before it will show up that way until you rebuild the program.

0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Here is an example program with a PDF on the issue.

0 Likes
Anonymous
Not applicable

new day, everything works. just used pin_write() and pin_read() in an older project. maybe was just some kind of missing header file 🙂

0 Likes