Join us in Chat. Click link in menu bar to join. Unofficial chat day is every Friday night (US time).
0 Members and 1 Guest are viewing this topic.
I think this might be it... Try Code: [Select]LED_Set(&statusLED,TRUE);The documentation is telling you that LED_Set takes a pointer (the asterisk is the clue), so you use the & to pass the variable's location, rather than passing by value.Also you can use [code ] [ / code] tags to make code snippets more readable.
I still use C, admittedly.Is HelloWorld.cpp initially being generated by Project Designer?Though this is not the issue, I recommend using AVR Studio 4.18 or 4.19 (not 5 or 6) if you aren't already.
Are most people using the c version of the webbotlib?
The status LED is a strange beast - for a number of reasons....1. WebbotLib wants to own it - to flash out error messages. Seems easier to grad a single I/O pin to do this than grab a resource like a UART of which there may only be one.2. Some boards share the status LED with one of the UART pins. Gives a nice flashiness when the UART is working but makes it difficult to control independently.3. If the user, ie you, try to control it then it makes things even harder - ie WebbotLib is trying to flash an error but your code is turning it on and off as well.That said - if you want to control it then try using:statusLED_on();statusLED_off();
Started by NOOBinDistress
« 1 2 »
Started by GrooveHolmes
Started by Conscripted
Started by Sylvestre