See Part 6 here (BLINKY CODE in Part 6)

 

Modifying the C file for the perfboard LED

 

The C file uses a receiver function that listens for data from an Android application using the Raw protocol.

This function we will leave the same.

 

{gallery} Modifying C File for PerfBoard

C Programming: Change the variable “GPIO_MODS_LED_DRV_3” at 4 places in the file to drive our GPIO pin named “GPIO_MODS_DEMO_ENABLE”

C Programming:  Change the variable “GPIO_MODS_LED_DRV_3” at 4 places in the file to drive our GPIO pin named “GPIO_MODS_DEMO_ENABLE”

C Programming:  Change the variable “GPIO_MODS_LED_DRV_3” at 4 places in the file to drive our GPIO pin named “GPIO_MODS_DEMO_ENABLE”

C Programming: :  Change the variable “GPIO_MODS_LED_DRV_3” at 4 places in the file to drive our GPIO pin named “GPIO_MODS_DEMO_ENABLE”

C Programming: : I’ve made the blink faster by changing the “BLINKY_PERIOD” from 1000 to 500. Pin variable

C Programming: :  I’ve made the blink faster by changing the “BLINKY_PERIOD” from 1000 to 500. Pin variable

C Programming: :  The original file used this pin, so we will comment it out

C Programming: : Now that we have changed the C file for our use with PG10. Hit Save, in the window.