- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this before you compile the program or after? If it is before it will show up that way until you rebuild the program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
new day, everything works. just used pin_write() and pin_read() in an older project. maybe was just some kind of missing header file 🙂