osd-contiki/examples/osd/arduino-climate3
Ralf Schlatterbeck 7f09f96e88 Fix compile error
Wire.h is a C++ include-file and may not be within 'extern "C"'.
2015-09-11 15:10:28 +02:00
..
Adafruit_HTU21DF_Library-master initial upload 2015-09-04 14:04:11 +02:00
resources initial upload 2015-09-04 14:04:11 +02:00
Adafruit_HTU21DF.cpp initial upload 2015-09-04 14:04:11 +02:00
Adafruit_HTU21DF.h initial upload 2015-09-04 14:04:11 +02:00
arduino-example.c initial upload 2015-09-04 14:04:11 +02:00
flash.sh initial upload 2015-09-04 14:04:11 +02:00
Makefile initial upload 2015-09-04 14:04:11 +02:00
new.cpp initial upload 2015-09-04 14:04:11 +02:00
new.h initial upload 2015-09-04 14:04:11 +02:00
Print.h initial upload 2015-09-04 14:04:11 +02:00
Printable.h initial upload 2015-09-04 14:04:11 +02:00
project-conf.h initial upload 2015-09-04 14:04:11 +02:00
README.md initial upload 2015-09-04 14:04:11 +02:00
run.sh initial upload 2015-09-04 14:04:11 +02:00
sketch.pde Fix compile error 2015-09-11 15:10:28 +02:00
Stream.cpp initial upload 2015-09-04 14:04:11 +02:00
Stream.h initial upload 2015-09-04 14:04:11 +02:00
twi.c initial upload 2015-09-04 14:04:11 +02:00
twi.h initial upload 2015-09-04 14:04:11 +02:00
Wire.cpp initial upload 2015-09-04 14:04:11 +02:00
Wire.h initial upload 2015-09-04 14:04:11 +02:00
WString.cpp initial upload 2015-09-04 14:04:11 +02:00
WString.h initial upload 2015-09-04 14:04:11 +02:00

Arduino compatibility example

This example shows that it is now possible to re-use arduino sketches in Contiki. This example documents the necessary magic. Arduino specifies two routines, setup and loop. Before setup is called, the framework initializes hardware. In original Arduino, all this is done in a main function (in C). For contiki we define a process that does the same.

See the documentation file in apps/contiki-compat/README.md