Skip to content

simonsso/rust_christmas_lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digispark ATtiny85 Christmas light

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

Requirements

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

ATTiny85 notes

Due to limitations of the programmable memory on this microcontroller,

  • be sure to build and run ---release version (cargo build --release or cargo 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)

Other notes

  • 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 your attiny85
  • Updated attiny85 won't work with obsolete version shipped by Digispark.

Update 2024

cargo +nightly-2022-07-10 run --release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published