Commit Graph

10 Commits

Author SHA1 Message Date
David A. Mellis af0ff93dc1 Adding ARDUINO version constant. 2009-05-24 15:12:19 +00:00
David A. Mellis 7357e38cf6 Fixing overflow bug in bit() macro: (1 << (b)) becomes (1UL << (b)) 2009-05-19 18:16:08 +00:00
David A. Mellis a2b3da7698 Optimizing the timer0 overflow handler (for millis()), based on work by WestFW and help from mikalhart. Increasing precision of math constants. 2009-05-12 10:55:26 +00:00
David A. Mellis 950789ab74 Adding micros() function. 2008-11-26 14:14:59 +00:00
David A. Mellis 5800ace0b5 Adding word datatype and cast/construction macros, bitRead(), bitWrite(), bitSet(), bitClear(), bit(). 2008-10-25 12:52:07 +00:00
David A. Mellis 2ba54d2cbf 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
2008-10-13 15:03:20 +00:00
David A. Mellis a50a2d888f Added timeout (in microseconds) parameter to pulseIn(). Defaults to 1000000 (1 second). 2008-03-08 21:30:00 +00:00
David A. Mellis 05717a198c Adding analogReference() function - needs testing on an ATmega8 (but works on the ATmega 168). 2007-12-14 04:21:59 +00:00
David A. Mellis 444c2dee32 Adding map(), fixing radians() and degrees(), adding cast functions (int(x) instead of (int) x), adding interrupts() and noInterrupts(), etc. 2007-11-21 17:08:07 +00:00
David A. Mellis 97aafe935a Moving hardware/targets to hardware/cores. 2007-10-06 14:47:50 +00:00