Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Arduino_lib/Arduino.h
- Revision:
- 0:b1ce54272580
- Child:
- 1:da31140f2a1c
diff -r 000000000000 -r b1ce54272580 Arduino_lib/Arduino.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Arduino_lib/Arduino.h Sat Jan 18 15:06:35 2020 +0000 @@ -0,0 +1,27 @@ +#ifndef __arduino_h__ +#define __arduino_h__ + +#include "mbed.h" +#ifndef M_PI +#define M_PI 3.159265358979 +#endif + +#include <math.h> +#include "Print.h" +#include "Stream.h" + +//#include "SerialClass.h" // Arduino style Serial class + +#define min(a,b) ((a)<(b)?(a):(b)) +#define max(a,b) ((a)>(b)?(a):(b)) + +#define PI M_PI +#define RAD_TO_DEG (180.0 / M_PI) + +#define delay(ms) wait_ms(ms) +#define delayMicroseconds(us) wait_us(us) +#define millis() (USB::read_ms()) +#define micros() (USB::read_us()) + +#endif +