Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2640
Tool/software: Code Composer Studio
Hello,
I am going through the tutorials for 'GUI Composer - JTAG_XDS model' with the CC2640 controller. In doing the 'Empty' project and have completed it. I would like to try to add an additional step, but cannot seem to get the GUI to correctly respond. I had added an additional line of code seen below in bold:
if(adcValue >= threshold){
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);
GPIO_write(Board_GPIO_LED1, Board_GPIO_LED_OFF);
trigger = 1;
} else{
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_OFF);
GPIO_write(Board_GPIO_LED1, Board_GPIO_LED_ON);
trigger = 0;
}
The attempt here is to add an additional LED light to the GUI Composer tutorial to reflect both LEDs on the CC2640 board.
Note: I tried to add an additional declaration 'trigger1' in the code the same way trigger is defined. However maybe it is more involved than I assume.
I am having issue adding the additional LED to function properly with what the board shows. I am very new to programming and am trying to understand how the call outs in my code reflect in the GUI design.
Thank you!