osd-contiki/apps/arduino
Ralf Schlatterbeck abdf6f8c6b Refactor A/D conversion in adc.c
Now the necessary settings are in adc.h. Refactored to allow repeated
ADC reads without reinitialization. Arduino allows setting
analogReference, this is now also implemented.
ADC is now initialized to sane values in apps/arduino/arduino-process.c
dev/arduino/arduino-compat.h now has all hardware independent settings
for arduino (some moved from platform/osd-merkur/dev/hw-arduino.h).
turnOffPWM re-implemented with hw_timer, removed from wiring_digital.c
ADC-specific arduino stuff moved to arduino-compat.h
Arduinos wiring_analog no longer necessary.
arduino-sketch example now reads analog inputs 1 and 5 using analogRead.
2014-11-19 13:53:32 +01:00
..
arduino-process.c Refactor A/D conversion in adc.c 2014-11-19 13:53:32 +01:00
arduino-process.h Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
Makefile.arduino Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
Makefile.include Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00
README.md Add Arduino compatibility layer 2014-11-19 13:48:05 +01:00

Arduino Compatibility

This application contains hardware-independent implementations of arduino compatibilty libraries and include files to be used with contiki.

The whole arduino compatibility library is work in progress. Note that features having to do with timers like millis and delay are currently untested. In Arduino they use timer 0 of the AVR microcontroller. It should be investigated to use the hardware timer already in use by contiki (on the OSD-merkur platform this is currently timer 5).