Commit graph

22 commits

Author SHA1 Message Date
Ralf Schlatterbeck e65dabb119 Add Arduino compatibility layer
We can now directly compile arduino sketches (.pde) files.
Arduino compatible analogWrite works now.
But there is still a long way to go, serial I/O and timer stuff (delay,
millis etc) currently don't work (not tested but I don't expect this to
work).
It can be used in an arduino sketch or in a normal contiki program.
We get a PWM frequency of 490.2 Hz (a period of 2.040 ms), that's
Arduino compatible. If you need different frequencies see native timer
usage in examples/osd/pwm-example
In a contiki program you have to call arduino_pwm_timer_init to
initialize the timer before pwm works. The arduino sketch wrapper
already does this.
For running a sketch, see examples/osd/arduino-sketch
2014-06-26 11:00:01 +02:00
harald d192553309 add i2c driver from Ingo 2014-06-21 21:30:48 +02:00
harald 45dee77092 bugfix read analog 2014-06-02 13:46:54 +02:00
harald 90ed9d14d2 add Arduino pin definition and commands 2014-05-22 16:25:15 +02:00
harald 0a5872e261 change resources to simple and make climate2 default 2014-05-08 13:04:27 +02:00
harald 5fcac26e80 get s/button ->show button status 0/1 2014-04-30 15:20:25 +02:00
Marcus Priesch 992e54fe25 Factored to support configurable amount of pwm's, fixes 2014-04-15 07:27:32 +02:00
harald 87028c1f60 temp and hum sensors values xxxx -> xx.xx 2014-04-15 07:27:32 +02:00
harald 1f586c7735 define new tria pins, configurable type ligt or shutter or plug 2014-04-15 07:27:32 +02:00
harald42 337be76b26 bugfix server client demo 2014-04-15 07:27:31 +02:00
harald42 da39da39dc initial upload 2014-04-15 07:27:31 +02:00
harald42 0ef2ce8e5c bugfix CS cast to uint8_t 2014-04-15 07:27:31 +02:00
harald42 7b46026b52 bugfix RH03 sensor 2014-04-15 07:27:31 +02:00
harald42 310234e0dc add dht22 and RHT03 support 2014-04-15 07:27:30 +02:00
harald42 b6bea56c27 use batmon in battery_sensor 2014-04-15 07:27:30 +02:00
harald42 ff227b7a04 initial upload 2014-04-15 07:27:30 +02:00
harald42 32d077790f remove debug code 2014-04-15 07:27:28 +02:00
harald42 7383f6708b timer4 servo pwm from Priesch Markus 2014-04-15 07:27:28 +02:00
harald42 0deca185bb many bugfixes, add cputemp 2014-04-15 07:27:28 +02:00
harald42 057a3c3345 add light-actor 2014-04-15 07:27:27 +02:00
harald42 bba7b84a15 add servo example 2014-04-15 07:27:27 +02:00
harald42 a6634acc50 add platform osd-merkur 2014-04-15 07:27:26 +02:00