cd <custom_path>/sketchbook
mkdir hardware # Create the hardware folder if missing
cd hardware
git clone git@github.com:mikaelpatel/Cosa.gitThen you can update the library by using:
git pull origin master- Download the Cosa zip file.
- Create the hardware folder if missing (<custom_path>/sketchbook/hardware).
- Unzip the files to your hardware folder.
- Rename
Cosa-mastertoCosa.
- Create an outer
Cosafolder (<custom_path>/sketchbook/hardware/Cosa). - Unzip the files to your
hardware/Cosafolder. - Rename inner
Cosafolder (<custom_path>/sketchbook/hardware/Cosa/Cosa-master) toavr(<custom_path>/sketchbook/hardware/Cosa/avr).
- Install this patch
Do not forget to program the ATtiny device with the bootloader, i.e., set the fuse bits, before using the device for the first time.
- Restart the Arduino IDE and Cosa will show up as a number of boards and example sketches.
The new AVR toolchain with gcc 4.8.1 is supported. There is also a platform definition file with link-time optimization enabled. This may be used to reduce memory foot-print (program size) and increase performance.
- Open the CosaBlink example sketch in the Sketchbook>hardware>Cosa>avr>Blink menu.
- Select your board in the Tools>Board menu.
- Compile and download.
- 2014-07-29 source and documentation
- 2014-09-05 source and documentation