Commit Graph

748 Commits

Author SHA1 Message Date
David A. Mellis a0ba08b4f4 Changing analog read channel mask from 0x07 to 0x0f to allow for reading of the temperature and other extended channels. 2009-06-15 19:40:47 +00:00
David A. Mellis db605dd18b First integration of the Arduino code in Processing 5503: PreProcessor and Compiler have been integrated with changes to the Sketch.
Compilation still has problems (Thread error on success, and can't handle non-pde files in a sketch).
Modified the Mac OS X make.sh to copy the hardware, avr tools, and example over.
Removing some of the antlr stuff.  
Disabling the Commander (command-line execution) for now.
Added Library, LibraryManager, and Target.
Added support for prefixed preferences (e.g. for boards and programmers).
2009-06-01 08:32:11 +00:00
David A. Mellis 159051b8f8 Adding support for ordering the Tools > Boards menu by using LinkedHashMap to store the keys for the prefixed sub-maps. Re-ordering the boards in the boards.txt file. Adding an entry for the LilyPad Arduino w/ ATmega328. Updating readme. 2009-05-30 08:56:03 +00:00
David A. Mellis 4cb002648c 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 31e765f1cb Adding ARDUINO version constant. 2009-05-24 15:12:19 +00:00
David A. Mellis 0b123d5ee4 Fixing overflow bug in bit() macro: (1 << (b)) becomes (1UL << (b)) 2009-05-19 18:16:08 +00:00
David A. Mellis 888f15f2a6 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 33fd8b8631 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 5489db7185 Fixing bugs in Client::connect() (failed to set _sock to 255 after some connection failures). 2009-05-08 13:11:04 +00:00
David A. Mellis 72aa6bb267 Updating default board to the Arduino Duemilanove w/ ATmega328. Adding a Tools > Boards entry for Arduino Pro or Pro Mini (8 MHz) w/ ATmega328. Cleaning up todo list. 2009-05-08 11:22:34 +00:00
David A. Mellis 9858f5294b Adding ATmega328 bootloader for the Pro and Pro Mini running at 8 MHz (3.3V). Uses the USART0 double speed mode, which according to Nathan from Sparkfun, is necessary to achieve reliable communication at 57600 baud. 2009-05-08 11:05:41 +00:00
David A. Mellis 3531cb49f4 Fixes to the way the Client class connects and disconnects, as well as checks of whether or not the socket is valid in various functions. 2009-04-26 14:58:39 +00:00
David A. Mellis 0681fc1f17 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 a42326aba2 Adding support for the Arduino Mega (ATmega1280) to the core and bootloader. 2009-03-25 10:50:00 +00:00
David A. Mellis b89ee8da48 Renaming atmega168 bootloader directory to atmega since it's no longer atmega168 specific. Updating boards.txt accordingly. 2009-03-24 10:41:46 +00:00
David A. Mellis bb1c655273 Adding Print.cpp to Makefile. 2009-03-16 20:08:45 +00:00
David A. Mellis a22c15cbcf Clarifying ATmega328 vs. ATmega168 in boards.txt (Boards menu). Modified todo and readme. 2009-03-07 10:06:53 +00:00
David A. Mellis 8e8de29347 Fixing Ethernet client connect code to properly chance source port each time. 2009-02-14 10:27:36 +00:00
David A. Mellis acc72e2c78 uncommenting Arduino w/ ATmega328 board w/ 57600 bootloader 2009-01-25 17:07:07 +00:00
David A. Mellis d7500ba228 fixing / improving printFloat() from Mikal Hart 2009-01-25 15:44:17 +00:00
David A. Mellis c0550aac8c Originating each outgoing network connection from a different source port (in the Client class of the Ethernet library).
Updating readme and todo.
2009-01-07 21:16:45 +00:00
David A. Mellis 1cee12bada Adding "Duemilanove" to the name of the Diecimila boards entry.
Adding commented out ATmega328 boards entry.
Updating todo and readme.
2008-12-23 00:21:03 +00:00
David A. Mellis 7a5a603042 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 ae9bcfb090 Fixing bug that made the Ethernet library interfere with pins 8 and 9.
Adding a delay(1) to the WebServer example to work with browsers.
Removing duplicate Print files from Ethernet library.
2008-12-14 16:55:23 +00:00
David A. Mellis 1e421dd393 Setting atmega328 bootloader baud rate to 57600 (for now) and adding isp targets to makefile (e.g. diecimila_isp, atmega328_isp). 2008-11-26 14:34:24 +00:00
David A. Mellis 1d86178387 Adding support for printing floats and doubles (defaulting to 2 decimal places) 2008-11-26 14:15:24 +00:00
David A. Mellis 051eb371a6 Adding micros() function. 2008-11-26 14:14:59 +00:00
David A. Mellis bcbd3a6ef4 Adding ATmega328 support. 2008-11-09 21:02:20 +00:00
David A. Mellis cf3ce01dad Updating libraries for atmega328 (adding it to a couple of #if's, etc.). 2008-11-08 21:57:48 +00:00
David A. Mellis b2e063e13e Switching to new signal (interrupt handler) names for compatibility with the ATmega328. 2008-11-08 21:31:55 +00:00
David A. Mellis 68e9d04f91 Waiting for pulse to start (rising or falling edge) to start timing. 2008-11-08 21:31:12 +00:00
David A. Mellis 80fc987a94 Fixing LiquidCrystal library example comments (d0, d1, d2, d3 => d4, d5, d6, d7). 2008-11-01 22:07:48 +00:00
David A. Mellis de4710abc8 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 e42b8d7ef8 Moving makeWord() function defintion into WMath.cpp (out of WProgram.h). 2008-10-26 12:31:45 +00:00
David A. Mellis da84adb1e9 Adding word datatype and cast/construction macros, bitRead(), bitWrite(), bitSet(), bitClear(), bit(). 2008-10-25 12:52:07 +00:00
David A. Mellis 5444b25e11 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 b7ec38e61a * Updating version number to 0013.
* Updating ATmega168 bootloader to work with standard distributions of avrdude
  (responding to signature requests made with the universal SPI command) and
  correctly store EEPROM data.  Thanks to ladyada.
* Changing compilation process to generate .eep file and allow for use of
  EEMEM directive (although not yet uploading EEPROM data).
2008-10-11 19:27:10 +00:00
David A. Mellis 3898f82e7d Reindenting the ATmega168 bootloader file. It was a mess (and still is somewhat of one). 2008-10-11 15:20:39 +00:00
Hans-Christoph Steiner 434d786347 updated TODOs and created a TODO file for general project todos 2008-10-05 23:39:49 +00:00
David A. Mellis 28db292f43 Removing WConstants.h include from Stepper.h so it compiles with new WProgram.h include placement. Updated readme. 2008-09-17 14:15:11 +00:00
Hans-Christoph Steiner 03a51e5ab7 removed deprecated timer0_overflow_count, which wasn't meant to be public
anyway.  Replaced it with the official millis() method of getting the time.
2008-09-16 17:18:41 +00:00
David A. Mellis e94fa49d9b 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
Hans-Christoph Steiner bf4484d02c switched up analogRead() loop to use the revamped millis() function rather than the private timer0_overflow_count variable 2008-09-12 16:53:57 +00:00
Hans-Christoph Steiner ad860f84d3 Firmata.h now needs to have WProgram.h, since in the sketches WProgram.h has moved from the first include to the last 2008-09-12 16:53:03 +00:00
Hans-Christoph Steiner 7b658714de copying Firmata-0.4beta2 release into trunk, then I'll adjust it to Arduino-0012 2008-09-12 16:35:07 +00:00
David A. Mellis 8af8938d41 Removing wiring core since it's not being kept up-to-date. 2008-09-10 15:22:59 +00:00
David A. Mellis 50009e64e5 Renaming Ethernet examples part 2 (apparently SVN doesn't allow renaming of a file at the same time as its containing directory). 2008-09-08 20:06:32 +00:00
David A. Mellis 57c941f4a9 Renaming ethernet library examples. 2008-09-08 20:05:31 +00:00
David A. Mellis f9354a2b9e Commented LCD examples. 2008-09-07 12:21:07 +00:00
David A. Mellis b7cd4c1724 Updated reference to include new libraries. 2008-09-07 11:54:26 +00:00