Index of the Moto Mods Developer project:

Moto Mods Developer Part 1 - Getting Started - Virtual Machine Setup and Linux Install

Moto Mods Developer Part 2 - Getting Started - SDK Setup & Android Studio Install

Moto Mods Developer Part 3 - Firmware Setup

Moto Mods Developer Part 4 - Getting Started - Make Build-Folder, add Utility and OS files

Moto Mods Developer Part 5 - Flashing Firmware with MDK Utility

Moto Mods Developer Part 6 - Blinking an LED on the Moto Mods Perfboard

Moto Mods Developer Part 7 - Modifying the C file for the perfboard LED

Moto Mods Developer Part 8 - Configure Nuttx

Moto Mods Developer Part 9 - Updating the Hardware Manifests file

Moto Mods Developer Part 10 - Cont’d Configure and Compile Nuttx

Moto Mods Developer Part 11 - Load newly created Nuttx Firmware onto Reference Board

Moto Mods Developer Part 12 - Soldering the Test Points to use the perfboard

Moto Mods Developer Part 13 - Making custom App to control the Firmware

 

 

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.