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.
Arduino_lib/Arduino.h
- Committer:
- robo_ichinoseki_a
- Date:
- 2020-05-02
- Revision:
- 1:da31140f2a1c
- Parent:
- 0:b1ce54272580
File content as of revision 1:da31140f2a1c:
#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_us(ms*1000) #define delayMicroseconds(us) wait_us(us) #define millis() (USB::read_ms()) #define micros() (USB::read_us()) #endif