Nicholas Herriot
/
digitalOutTest
simple digital out test for Kieran and George
main.cpp
- Committer:
- nherriot
- Date:
- 2012-05-14
- Revision:
- 1:47ca6e1d2bb2
- Parent:
- 0:47c9955d2655
- Child:
- 2:9f49540bdf29
File content as of revision 1:47ca6e1d2bb2:
#include "mbed.h" DigitalOut red(p5); DigitalOut myled(LED1); DigitalOut myled2(LED2); //DigitalOut green(p6); //DigitalOut blue(p7); int main() { // testing digital out 3.3volts on pin 5 // flash LED 1 at the same time for visual clue that it works while(1) { red = 1; myled = 1; myled2 = 1; wait(2); red = 0; myled = 0; myled2 = 0; } }