Commit Graph

27 Commits

Author SHA1 Message Date
David A. Mellis d277488310 Cleaning up the core (modified version of a patch by Jim Studt): moving pin definitions to program space to save RAM, changing core function arguments (e.g. pinMode(), digitalWrite()) to uint8_t, restoring old SREG after delayMicroseconds() instead of always enabling interrupts, etc. 2007-04-20 23:17:38 +00:00
David A. Mellis 88d8326615 Splitting wiring.c into multiple files to get even smaller sketch sizes. 2007-02-03 16:52:51 +00:00
David A. Mellis 2377bb9ddd Removing delay() in analogRead(). It seems we don't need it. Not sure what changed from before when it seemed necessary to prevent bugs. 2007-02-03 15:36:30 +00:00
David A. Mellis cfeb4a3bce Fixed bug in Serial.available() causing it to return incorrect values when the head wrapped around. Thanks to Don Cross. 2007-01-12 21:27:18 +00:00
David A. Mellis 41d50ae572 Now appending main() to the user's sketch in preparation for making the Arduino core a library (.a) file. 2007-01-12 17:58:39 +00:00
David A. Mellis 2bc42669e8 Adding Serial.flush() command. 2006-12-25 18:00:30 +00:00
David A. Mellis d21eb97de4 Adding some comments to explain the interrupts. 2006-11-29 19:35:43 +00:00
David A. Mellis 514a74849a attachInterrupt() and detachInterrupt(): from Wiring, with changes to automatically enable and disable the relevant interrupt and to specify the trigger. 2006-11-24 17:12:32 +00:00
David A. Mellis bd17cfbdc0 Added shiftOut() routine and fixed new serial functions to work with the ATmega168. 2006-11-23 19:13:21 +00:00
David A. Mellis a740bf0588 Replaced avr-lib serial with custom code in wiring.c. 2006-11-23 16:02:55 +00:00
David A. Mellis 9964122513 Now disconnecting the serial lines from pins 0 and 1 until you call Serial.begin(); that way they can be used as normal digital i/o. 2006-11-20 17:02:57 +00:00
David A. Mellis 41d86d5a75 Added support for extra analog inputs and pwms on ATmega168. 2006-10-15 11:45:26 +00:00
David A. Mellis 2f97a4b146 Got timer and pwm functions working with the ATmega168 (including pwm on pin 3); no longer relying on timer.c or timer.h from avrlib. 2006-08-26 09:56:40 +00:00
David A. Mellis 4ba8ffb6ee Optimized size of core, fixed some warnings in libraries. 2006-07-09 12:39:27 +00:00
David A. Mellis c4c8c95474 Commented the pulseIn function. 2006-03-24 14:47:11 +00:00
David A. Mellis 4f80fe1489 Added pulseIn function to measure pulse durations. 2006-03-24 14:09:54 +00:00
David A. Mellis aa9ed15849 Implemented PWM on pin 11; slowed PWM frequency on pins 9 and 10; documented changes in readme.txt. 2006-02-25 13:15:23 +00:00
David A. Mellis c8711cd2fd printInteger() & co now take longs instead of ints. 2006-02-24 15:52:19 +00:00
David A. Mellis ddb6120299 Fixed (improved, at least) millis(), changed printString to take (char *) instead of (unsigned char *) to work with string literals (e.g. printString("hello");) in C++. 2006-02-12 16:01:59 +00:00
David A. Mellis 55dc23e859 Fixed beginSerial() to take baud rates above 19200; adjusted Serial Monitor Baud Rate menu items accordingly. 2006-01-16 09:55:09 +00:00
David A. Mellis bbec45d3df Improved accuracy of delayMicroseconds(). 2005-12-03 17:03:26 +00:00
David A. Mellis 30999fdcfd Reversed order of analog input pins. Added printNewline(). 2005-11-28 13:31:08 +00:00
David A. Mellis 38ee1b7330 Commented out idle loop in timer (was giving problems under Linux) and added comments. 2005-11-23 00:28:35 +00:00
David A. Mellis 80cf383855 millis() now returns a new value every millisecond, instead of every second. 2005-10-08 08:46:13 +00:00
David A. Mellis 482557ea01 Update Mac icon; replaced print() with printInteger(), printByte(), printString(), printHex(), printBinary(), printOctal(), and printIntegerInBase(). 2005-10-04 09:03:02 +00:00
David A. Mellis 11aca24b1f Renamed delayMicro() to delayMicroseconds() 2005-09-27 14:39:03 +00:00
David A. Mellis 7fbb37cbe0 Reworked build system: makefiles replaced with in-program logic; core replaced with targets; preproc/ replaced with Wiring's; now prepend "#include "WProgram.h" instead of wiringlite.inc; new entries in preferences.txt; bundled Wiring libs. 2005-09-25 14:11:32 +00:00