Commit Graph

37 Commits

Author SHA1 Message Date
David A. Mellis b91e250d96 Removing wiring_serial.c as it's no longer used. (All serial functionality is now in HardwareSerial.h / HardwareSerial.cpp.) 2009-05-24 15:13:08 +00:00
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 60ad594d7b Modifying Makefile to generate dependencies (and .d files) automatically. Patch from Lars Immisch: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1241007184 2009-05-09 18:09:02 +00:00
David A. Mellis 9dd3491ab3 Adding write(str) and write(buf, size) methods to Print class and Ethernet library Client and Server classes. This allows sending a whole string or buffer at once, reducing the number of ethernet packets. 2009-04-26 13:10:34 +00:00
David A. Mellis 1b17232798 Adding support for the Arduino Mega (ATmega1280) to the core and bootloader. 2009-03-25 10:50:00 +00:00
David A. Mellis 7e18c29245 Adding Print.cpp to Makefile. 2009-03-16 20:08:45 +00:00
David A. Mellis 854c69dfde fixing / improving printFloat() from Mikal Hart 2009-01-25 15:44:17 +00:00
David A. Mellis 9fc613ad6f Fixing delay() to delay at least N milliseconds.
Fixing register name in micros() for ATmega8.
2008-12-23 00:17:14 +00:00
David A. Mellis 2661608ba4 Adding support for printing floats and doubles (defaulting to 2 decimal places) 2008-11-26 14:15:24 +00:00
David A. Mellis 950789ab74 Adding micros() function. 2008-11-26 14:14:59 +00:00
David A. Mellis 65b1e9225c Switching to new signal (interrupt handler) names for compatibility with the ATmega328. 2008-11-08 21:31:55 +00:00
David A. Mellis e79b319fd1 Waiting for pulse to start (rising or falling edge) to start timing. 2008-11-08 21:31:12 +00:00
David A. Mellis dd1fdf61e4 Switching tests for __AVR_ATmega168__ to tests for __AVR_ATmega8__ so that less changes are needed to support other processors. 2008-11-01 22:06:13 +00:00
David A. Mellis 97fd64e3f0 Moving makeWord() function defintion into WMath.cpp (out of WProgram.h). 2008-10-26 12:31:45 +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 362b952a68 Adding #ifdef guard to WProgram.h to prevent multiple #includes.
Removing Print class inheritance from Firmata since it's not clear that it can be implemented in a way that's compatible with the Firmata protocol and the Print class interface.
2008-09-15 21:09:13 +00:00
David A. Mellis 34465d0ac9 Removing wiring core since it's not being kept up-to-date. 2008-09-10 15:22:59 +00:00
David A. Mellis 191bb02f00 Updating Makefile to derive target name from the current folder. 2008-08-17 20:10:47 +00:00
David A. Mellis 278872728a Adding ADXL3xx accelerometer example; minor comment changes. 2008-07-02 19:06:27 +00:00
David A. Mellis 0bdc02cea5 Wire library patch to provide better error handling. 2008-06-21 23:16:27 +00:00
David A. Mellis 3233d7939b Fixing random() to work with longs. 2008-05-26 14:02:32 +00:00
David A. Mellis 8f75f0299d Changing Print class to use regular virtual write() function (instead of my hack
ed together version).
2008-05-07 18:24:49 +00:00
David A. Mellis 7d2a6a115f Fixing millis() overflow: changing millis() and the timer 0 overflow handler so that the millis count is updated in the interrupt, and so we don't need to do a conversion inside millis(). Updated to do list. 2008-04-18 21:56:14 +00:00
David A. Mellis 1a89112e45 Adding the Print class. 2008-04-18 18:46:52 +00:00
David A. Mellis ab644804ac Factored out print() and println() from HardwareSerial to a base class for sharing with other things (e.g. LiquidCrystal library), eliminating #include's of avr/signal.h (deprecated). Upping version number and modifying to do list. 2008-04-18 18:39:02 +00:00
Hans-Christoph Steiner 27b2712018 added newline at the end of file to get rid of compiler and SVN warnings 2008-03-24 17:28:17 +00:00
David A. Mellis ff9bb8dd14 Adding to the todo list and readme; fixing a bit of indentation. 2008-03-08 22:05:23 +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 205a447992 Incorporating a modified version of oli.keller's Makefile (prepends #include <WProgram.h> and appends main() among other things). 2008-03-05 02:50:11 +00:00
David A. Mellis 7ffb4cd25d Cleaning up Mac build, adding Serial.println(unsigned int), adding #include <Sprite.h> to hello_matrix example. 2008-02-23 21:52:53 +00:00
David A. Mellis b33c8a093d New script for download the reference from Tom Pollard. Updated reference and readme and Makefile. 2008-01-22 22:10:55 +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