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.
I'm porting a program from the Arduino to the mbed... Arduino has a function called digitalWrite and is called like:
digitalWrite(pin,HIGH/LOW);
This is actually very convenient when writing out data to multiple pins inside a loop.
Is there a way I can address a DigitalOut pin in code by pin# like this rather than by a given pin name?
thanks