Skip to content

Latest commit

 

History

History
78 lines (53 loc) · 2.65 KB

File metadata and controls

78 lines (53 loc) · 2.65 KB

Simple implementation of the Pomodoro timer in Arduion

  • Initial '12' cycles colors

Buttons:

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

Structure

image

  • use the conf.h file to adjust the programms behavior

Compile and Upload

Dependencies

  • 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

arduino-cli

  1. Install the arduino-cli

  2. 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
  1. 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
  1. Now compile like this:
# compile with megaTinyCore for attiny412(atxy2) (or attiny212)
arduino-cli compile --fqbn megaTinyCore:megaavr:atxy2 code.ino
  1. 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.ino

Arduion IDE 1.X

TODO

Quentores Notes
  • with the Quentores you have a problem under Linux and MacOS mentioned here
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