- Initial '12' cycles colors
| Button | Function |
|---|---|
| Restart (right) | Cancels the Current Routine and Starts again |
| Start/Stop (middle) | Toggles running of the current round (pause or productivity time) |
| Skip (left) | Skips the currently running cycle |
- use the
conf.hfile to adjust the programms behavior
- Arduino, ether
- IDE (recommended: v1/legacy, but the newer one should also work)
- arduino-cli
- MegaTinyCore for the core implementation of the arduino API for the ATtiny412
-
Install the arduino-cli
-
First you need to setup your Arduino environment:
# initialises the system configuration for arduino
# usually at '$HOME/.arduino15/' where 15 represents the version
arduino-cli config init- Next you need to download the core library
# add the index from the MegaTinyCore index
arduino-cli config add board_manager.additional_urls http://drazzy.com/package_drazzy.com_index.json
# now install the megaTinyCore library
arduino-cli core install megaTinyCore:megaavr- Now compile like this:
# compile with megaTinyCore for attiny412(atxy2) (or attiny212)
arduino-cli compile --fqbn megaTinyCore:megaavr:atxy2 code.ino- And then to upload it with the Serial D11C Programmer (and this adapter) use this:
# upload with the flasher on port '/dev/ttyACM0' for the attiny412 (atxy2) and the flasher is a 'serialupdi57k' (57000 Baudrate)
arduino-cli upload -p /dev/ttyACM0 --fqbn megaTinyCore:megaavr:atxy2 -P serialupdi57k code.inoTODO
python -m virtualenv .
source ./bin/activate.sh
pip install pymcuprog==3.16.8.40
# ___________________________________________________________________________ change this to your file
pymcuprog write -t uart -u /dev/ttyACM0 -d attiny412 -f $HOME/.cache/arduino/sketches/23D6BB44CFB64DF5516B4531B04243FE/code.ino.hex --erase --verify