Even though i have changed to the buttons and led (0 to 3), but the led 0 & button 0 only remains functional. can anyone say ??
Even though i have changed to the buttons and led (0 to 3), but the led 0 & button 0 only remains functional. can anyone say ??
Did you change the defines of PIN_IN
and PIN_OUT
? If you want to use button and LED 4, the top of your application should look like this:
#ifdef BSP_BUTTON_3
#define PIN_IN BSP_BUTTON_3
#endif
#ifndef PIN_IN
#error "Please indicate input pin"
#endif
#ifdef BSP_LED_3
#define PIN_OUT BSP_LED_3
#endif
#ifndef PIN_OUT
#error "Please indicate output pin"
#endif
Did you change the defines of PIN_IN
and PIN_OUT
? If you want to use button and LED 4, the top of your application should look like this:
#ifdef BSP_BUTTON_3
#define PIN_IN BSP_BUTTON_3
#endif
#ifndef PIN_IN
#error "Please indicate input pin"
#endif
#ifdef BSP_LED_3
#define PIN_OUT BSP_LED_3
#endif
#ifndef PIN_OUT
#error "Please indicate output pin"
#endif
Thank you ,now its working well. am doesin change the PIN_IN and PIN_OUT..
I am having an issue where the example simply doesn't seem to be loading onto the board. I try to run the example exactly as it is (which, I gather means LED1 should come on when BUTTON1 is pressed), but the board just runs the same program that was on it before. And if I clear the flash, nothing happens, but I can still load other projects just fine. Any suggestions there?
How did you flash the application? Did you modify the example? You should try debugging the application to see if any error codes are returned from function calls, causing your application to end up in the error handler (which again might reset the chip).