Description
This example is made to demonstrate how small the Femto OS can be. It just runs two tasks. One task reads the status of the switches and copies the result to a variable. The other reads the variable and displays it on the leds. It takes around 720 bytes of flash and 35 bytes of ram.
Hardware
ATtiny861 and STK500. The eight leds on the STK500 connected to port A. Port B must be connected to the switches. Note that pin 7 on port B is used for the reset line per default so this channel will not work if the fuse is not blown.
Contact: info@femtoos.org | CC-BY License: Ruud Vlaming. |