J.P. Armstrong
/
IntToBinaryAssembly
Assembly procedure that represents binary using the LEDs on the mbed.
Diff: main.cpp
- Revision:
- 1:7490aeb7d770
- Parent:
- 0:13e4e935bed6
- Child:
- 2:a81c9bc37084
--- a/main.cpp Thu Jan 27 06:24:28 2011 +0000 +++ b/main.cpp Thu Jan 27 06:42:17 2011 +0000 @@ -1,4 +1,12 @@ +// +// INTEGER TO BINARY by J.P. Armstrong +// http://www.armtronics.com/ +// +// PART OF CODE FROM: +// http://mbed.org/cookbook/Assembly-Language + #include "mbed.h" + // This program will blink LED1 and LED4 // using assembly language for LED1 and // API functions for LED4 @@ -11,9 +19,6 @@ DigitalOut myled3(LED3); DigitalOut myled4(LED4); -Timer t; -Serial pc(USBTX, USBRX); // tx, rx - int main() { int i = 1;