1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Commit Graph

69 Commits

Author SHA1 Message Date
David A. Mellis
42db4942dd Adding EEPROM library examples. 2007-05-04 21:53:23 +00:00
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
81b0054893 Modifying SoftwareSerial timing to work with new digitalRead() and digitalWrite() functions. 2007-04-20 23:18:25 +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
Hans-Christoph Steiner
440033c814 First working sketch of the Firmata protocol as a library. Just the
printVersion and input messages.
2007-04-14 15:20:14 +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
ce57fe617d Adding EEPROM library. API: EEPROM.read(addr), EEPROM.write(addr, val). 2006-12-27 21:36:39 +00:00
David A. Mellis
122bee43c6 Adding #include <avr/signal.h> to twi.c because the older version of avr-libc for Ubuntu Linux 6.06 (Dapper) doesn't define SIGNAL() in <avr/interrupt.h>. 2006-12-26 00:01:31 +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
41eeba97ca Removing Sonar library as per Tom Igoe's suggestion. 2006-12-05 20:51:03 +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
69949c2041 Adding #include <Wire.h> to the Wire library examples. 2006-12-02 20:45:04 +00:00
David A. Mellis
4cdcd82a76 Fixed WInterrupts to work with the ATmega168. 2006-12-02 16:59:20 +00:00
David A. Mellis
f92fd4750c Adding software serial libraries. The read function doesn't quite work properly yet, but it's a start. 2006-11-29 23:29:01 +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
8d6176d0a4 Adding Sonar library for controlling Parallax Ultrasonic PING))) sensors. 2006-11-21 18:16:03 +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
9d62fdd479 Adding Wire (TWI/I2C) library from Wiring. Renamed TwoWire.cpp to Wire.cpp and Wire.h to Wire.cpp so that the #include in the sketch matches the name of the library. 2006-10-08 08:51:39 +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
2bf3756af1 Adding blank target for people who don't want to use the Arduino libraries. 2006-09-01 10:44:35 +00:00
David A. Mellis
dfdd7f5c02 Removing Foo library. 2006-08-30 14:38:33 +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
e751b61d4d Updating wiring firmware to version 0006. 2006-04-14 11:09:32 +00:00
David A. Mellis
56c86b6f67 Readding Matrix examples. 2006-04-09 12:38:38 +00:00
David A. Mellis
b4c2fc9d9f Removing matrix examples temporarily. 2006-04-09 12:37:55 +00:00
David A. Mellis
c2f27f227d Adding examples and keyword files to Sprite and Matrix libs. 2006-04-09 12:35:08 +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