This is a rust reimplementaion for https://github.com/simonsso/christmas_lights targeting only the Digispark ATtiny low cost hardware platform.
This project is created using Tomasz Wiszkowski's templates
To use this, you need to
- download, or better - build -
micronucleus
from Github repo. - install Rust nightly
- install AVR GCC
rustup install nightly
rustup default nightly
sudo apt install avr-gcc
Due to limitations of the programmable memory on this microcontroller,
- be sure to build and run
---release
version (cargo build --release
orcargo run --release
) - otherwise your code just won't fit. - the code interfaces registers directly to preserve programmable memory (believe it or not, it's also faster this way)
- This has only been used on Linux. Not sure how this will work on other platforms.
- When using Arduino IDE, replace the Digispark-shipped
micronucleus
with the one you built. micronucleus
repo has bootrom upgrades that can be used to update yourattiny85
- Updated
attiny85
won't work with obsolete version shipped by Digispark.
cargo +nightly-2022-07-10 run --release