Skip to content

Commit

Permalink
Added support for ATtiny processors (#353)
Browse files Browse the repository at this point in the history
* added support for ATtiny processors

* for ATtiny added more effects if the device has more memory

* fixed some signed/unsigned comparison warnings

* added note to ATtiny example sketch

* fix another signed/unsigned comparison warning

* added results of running the tester script

* fixed a typo
  • Loading branch information
moose4lord authored Jun 15, 2024
1 parent 10e15f0 commit 32ca0f3
Show file tree
Hide file tree
Showing 12 changed files with 1,084 additions and 44 deletions.
12 changes: 8 additions & 4 deletions examples/tester.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
# output a file and go get a cup of coffee:
# ./tester.zsh > tester.txt

# add the Arduino IDE 1.0 application to $PATH
# export PATH="$PATH:/Applications/Arduino IDE.app/Contents/MacOS"

# path to the Arduino IDE 2.0 CLI executable (for MacOS)
alias -g arduinoCLI="/Applications/Arduino\ IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli"
#alias -g arduinoCLI="/Applications/Arduino\ IDE.app/Contents/Resources/app/node_modules/arduino-ide-extension/build/arduino-cli"
alias -g arduinoCLI="/Applications/Arduino\ IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli"

# test that we can execute the Arduino command
# arduinoCLI version
Expand All @@ -22,12 +20,14 @@ alias -g leonardo-board="arduino:avr:leonardo"
alias -g esp8266-board="esp8266:esp8266:nodemcuv2"
alias -g esp32-board="esp32:esp32:esp32doit-devkit-v1"
alias -g rp2040-board="rp2040:rp2040:rpipico"
alias -g ATtiny-board="megaTinyCore:megaavr:atxy2"

# port aliases
alias -g leonardo-port="/dev/cu.usbmodem14101 (Arduino Leonardo)"
alias -g esp8266-port="/dev/cu.usbserial-0001"
alias -g esp32-port="/dev/cu.usbserial-0001"
alias -g rp2040-port="/dev/cu.usbmodem14101 (Raspberry Pi Pico)"
alias -g ATtiny-port="/dev/cu.usbserial-2340 SerialPort (USB)" # Arduino Nano used as a programmer

# example compile command:
# arduinoCLI compile -b leonardo-board ws2812fx_segments/ws2812fx_segments.ino
Expand Down Expand Up @@ -109,3 +109,7 @@ arduinoCLI compile --no-color -b esp8266-board ws2812fx_soundfx/ws2812fx_soundfx
# the ws2812fx_dma example sketch is written to work only on ESP8266 boards, so test that separately
echo "\nCompiling ws2812fx_dma/ws2812fx_dma.ino for ESP8266"
arduinoCLI compile --no-color -b esp8266-board ws2812fx_dma/ws2812fx_dma.ino 2>/dev/null; echo "exit status" $?

# the ATtiny board is special, so test that separately
echo "\nCompiling ws2812fx_ATtiny/ws2812fx_ATtiny.ino for ATtiny412"
arduinoCLI compile --no-color -b ATtiny-board ws2812fx_ATtiny/ws2812fx_ATtiny.ino 2>/dev/null; echo "exit status" $?
Loading

0 comments on commit 32ca0f3

Please sign in to comment.