This will become a hardware abstraction layer for my mbed projects. It will make it easier to port sketches from Arduino to mbed
Diff: Arduino.h
- Revision:
- 1:c9f5b6330d8d
- Parent:
- 0:a4ee09d0d765
- Child:
- 2:7e1ff33bc76a
--- a/Arduino.h Sat Jun 04 19:44:05 2011 +0000 +++ b/Arduino.h Sat Jun 04 19:49:54 2011 +0000 @@ -1,3 +1,6 @@ +#ifndef Arduino_h +#define Arduino_h + #include "mbed.h" #define HIGH 0x1 @@ -12,4 +15,7 @@ void pinMode(int, int); void digitalWrite(int, int); -int digitalRead(int); \ No newline at end of file +int digitalRead(int); + +#endif + \ No newline at end of file