diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2008-10-13 15:03:20 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2008-10-13 15:03:20 +0000 |
commit | 5444b25e11bce6139a58c8a641dccd266f90a0f1 (patch) | |
tree | 8da36e16ca20fbb31fdcd4314dd108452bda3253 /cores/arduino/wiring.h | |
parent | b7ec38e61a4f92ade80e38744d00311538671179 (diff) |
Little fixes:
- changing random(max) to use stdlib.h random()
- not generating .eep files to avoid warning when EEMEM isn't used
- removing cast macros (since they are automatically defined in C++)
- writing a digital LOW for PWM value of 0 on pins 5 or 6
Diffstat (limited to 'cores/arduino/wiring.h')
-rwxr-xr-x | cores/arduino/wiring.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cores/arduino/wiring.h b/cores/arduino/wiring.h index 26cba9e..3701f6d 100755 --- a/cores/arduino/wiring.h +++ b/cores/arduino/wiring.h @@ -66,12 +66,12 @@ extern "C"{ #undef abs #endif -#define int(x) ((int)(x)) -#define char(x) ((char)(x)) -#define long(x) ((long)(x)) -#define byte(x) ((uint8_t)(x)) -#define float(x) ((float)(x)) -#define boolean(x) ((uint8_t)((x)==0?0:1)) +//#define int(x) ((int)(x)) +//#define char(x) ((char)(x)) +//#define long(x) ((long)(x)) +//#define byte(x) ((uint8_t)(x)) +//#define float(x) ((float)(x)) +//#define boolean(x) ((uint8_t)((x)==0?0:1)) #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(b)) |