Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
You do not have the correct permissions to perform this operation. Please, contact us at support@mbed.com to gain full access.
×
Hi Everyone,
I have a question on the Mbed pin assignments. I am writing a program to interface with an ADC. I have split the program over 3 files, the first sets up the ADC, the second reads it and the third (main.cpp) takes in tha data and prints it to a pc.
I know I can use global variables by using the extern declaration, but is there some way I can make global pin assignments as the same pins are used in the setting up and reading of the ADC, it seems a bit silly to have to redeclare them all using different names!
Regards
Martin