Commit Graph

53 Commits

Author SHA1 Message Date
David A. Mellis dd3a2c90e1 Updated the makefile to mirror new build system (with .a library and multiple wiring.c files). 2007-05-04 21:52:21 +00:00
David A. Mellis 52a40bfac9 Removing duplicate copies of clock cycle macro functions from wiring_private.h. 2007-04-20 23:50:40 +00:00
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 adc02386ec Making NUM_ANALOG_IN_PINS conditional on the microcontroller so analog inputs 6 and 7 work on the ATmega168. 2007-01-17 08:16:43 +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 fd0a5413aa Adding #include <avr/signal.h> to WInterrupts.c. 2006-12-19 04:54:53 +00:00
David A. Mellis cddebf41cc Stopped building .eep file since it was causing errors and we don't need it. 2006-12-05 20:33:39 +00:00
David A. Mellis 4cdcd82a76 Fixed WInterrupts to work with the ATmega168. 2006-12-02 16:59:20 +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 e3a0eeb6df Changed HardwareSerial to call the C serial functions in wiring.h and wiring.c to save space. 2006-11-23 11:39:23 +00:00
David A. Mellis 6bcf40ea9a Adding binary.h for digital constants like B1010. 2006-11-20 17:47:04 +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 28447e57a6 Adding instructions for chaning ARDUINO directory. 2006-10-05 22:47:55 +00:00
David A. Mellis cf1f17886f Adding a Makefile to build Arduino programs from the command line, so that (mostly Linux users) can use Arduino without the environment or installing Java. 2006-10-05 22:40:59 +00:00
David A. Mellis 702229b2ec Removed three .lst files since I don't think they should be there. 2006-08-27 09:46:12 +00:00
David A. Mellis 896194ff77 Got uart/usart serial communication working with the atmega168. Added some #define for the appropriate register and interrupt/signal names. 2006-08-26 11:35:39 +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 cb676dfa2a Adding Wiring-compatible random(min) and random(min, max) functions (except operating on longs instead of floats). 2006-08-13 09:59:06 +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 73612d95e0 Commented out unused functions from timer.c to save space. 2006-07-04 22:08:35 +00:00
David A. Mellis e9113e0320 Reversed analog input pins on ASCII art diagram to correspond with current boards. 2006-07-04 22:08:11 +00:00
David A. Mellis d43594f1dc wiring.h include avr/io.h and WProgram.h include stdlib.h and string.h 2006-04-14 11:53:56 +00:00
David A. Mellis b5dde887ab Library system working: Import Library menu adds header files to sketch, linking is conditional based on #include's in sketch. 2006-03-26 22:16:55 +00:00
David A. Mellis 650c2752c8 Serial.println() now sends '\r', '\n' (instead of just '\n') 2006-03-26 12:13:01 +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 c6d860ef00 Adding new C++ Serial lib from Nick/Wiring, but modified to use avrlib's uart.c and uart.h as low-level functions. 2006-03-23 14:16:00 +00:00
David A. Mellis ac79978ff5 Moved Matrix and Sprite libraries out of arduino/ core directory, as they were too big to link against every sketch. 2006-03-21 10:49:41 +00:00
David A. Mellis 1c2b95f759 Fixed abs(), min(), max(), constrain() macros (were incorrectly parenthesized). 2006-03-20 22:43:25 +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 ea34315bc2 Adding Matrix, Sprite changed to 1 bit only (max 8x8). 2006-02-23 23:18:20 +00:00
David A. Mellis cb066a259d Adding preliminary Sprite library. 2006-02-23 12:01:57 +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 7e0183cf41 Added C++/extern C wrappers, missing function prototypes. 2006-02-12 16:00:47 +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 b7728ae604 svn merge -r 72:HEAD svn+ssh://mellis@svn.berlios.de/svnroot/repos/arduino/tags/0004 - used Base.java from tags/0004 but changed version back to 0003. 2006-01-12 23:24:12 +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 21fe7f0a83 Trying desperately to get the Windows build working. 2005-10-06 17:18:26 +00:00