This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLPNIRNANOEVM: Writing to the GPIO pins with the expansion connector

Part Number: DLPNIRNANOEVM
Other Parts Discussed in Thread: TIDA-00554

I am using an optical switch with my NIRScan Nano, attched through the expansion connector. I'm trying to write to pins A2, A3, and K2 and use them for binary logic to switch the channel number on my optical switch. However, I can't seem to get it to actually write to those pins. I have tried adding code in bothe the NIRscanNano_powerUp() function and the NIRscanNano_initGPIO() function in the NIRscanNano.c file. The lines of code I added are shown below:

MAP_GPIOPinTypeGPIOOutput( GPIO_PORTA_BASE, GPIO_PIN_2 );
MAP_GPIOPinTypeGPIOOutput( GPIO_PORTA_BASE, GPIO_PIN_3 );
MAP_GPIOPinTypeGPIOOutput( GPIO_PORTK_BASE, GPIO_PIN_2 );

MAP_GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_2, 1 );
MAP_GPIOPinWrite( GPIO_PORTA_BASE, GPIO_PIN_3, 1 );
MAP_GPIOPinWrite( GPIO_PORTK_BASE, GPIO_PIN_2, 1 );

I don't know if I need to be writing to the pins in another file, or if I'm just writing to them incorrectly. I'm trying to writing all three pins (A2, A3, K2) as high.

Thanks!