This website requires JavaScript.
Explore
Help
Sign In
deac
/
osd-contiki
Watch
1
Star
0
Fork
You've already forked osd-contiki
0
Code
Issues
Pull requests
Releases
Wiki
Activity
c666b18a12
osd-contiki
/
examples
/
osd
/
arduino-sketch
/
flash.sh
3 lines
45 B
Bash
Raw
Normal View
History
Unescape
Escape
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
#!/bin/bash
Multi-platform support, osd-merkur-{128,256} Rename guhRF platform to osd-merkur-256, previous osd-merkur platform is now osd-merkur-128. Also check that everything is consistent. Add both platforms to the regression tests. Move redundant files in platform dev directory of both platforms to cpu/avr/dev. Note that this probably needs some rework. Already discovered some inconsistency in io definitions of both devices in the avr/io.h includes. Added a workaround in the obvious cases. The platform makefiles now set correct parameters for bootloader and for reading mac-address from flash memory. Factor the flash programming into cpu/avr and platform/osd-merkur* and rework *all* osd example makefiles to use the new settings. Also update all the flash.sh and run.sh to use the new settings. The suli ledstrip modules (and osd example) have also been removed.
2016-04-22 17:51:59 +02:00
make
TARGET
=
osd-merkur-128 flash
Reference in a new issue
Copy permalink