Skip to content

A software implementation of the ATTINY85 code that runs on the DMGC

Notifications You must be signed in to change notification settings

juvinious/dmgc-attiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DMGC-ATTINY VIEWER

A software implementation of the ATTINY85 code that BucketM0use made for the DMGC.

HOW TO USE

Run with SDL2

  • Install c++ development tools, libyaml-cpp and SDL2
    • Example in Ubuntu install: apt-get install build-essential libyaml-cpp-dev libsdl2-dev
  • make
  • executables are dropped in bin directory

Examples

There are currently three example sketches

DMGC-IPS-ATTINY85

This is the original sketch. Refer to DMGC-IPS-01 for details.

DMGC-IPS-ATTINY85-PLUS

This is the same as the original, but improved using the key/button handler which is using states to determine the positions of buttons. Better practice instead of blocking with while loops. :P.

BREATHING

A more extended example, allowing for different modes.

  • Breathing - Increases and decreases brightness at a specific rate. Changes to random color when brightness is at 5 or below, starting a new cycle
  • Left to Right (LTR) - Run a gradient from left to right while brightning the a random color to the max, fade out and then restart
  • Right to Left - Same as LTR, but going in the opposite direction
  • Center Out - Same as LTR, but starting from right and select and going outward
  • Out to Center - Same as LTR, but starting at up and A
  • Random - Randomizes the order of the cycling as LTR

Breathing Example

Deploy to ATTINY85 in Arduino IDE

  • Symlink library directory as src in the directory of the sketch
    • In windows: mklink /J src ....\library
    • In linux: ln -s ../../library src
  • Open ino sketch, compile & upload

Finally

Have fun!

TODO

  • Cleanup/Optimize configuration content
  • Add additional utils as needed
  • Adafruit_NeoPixel
    • Implement other functionality
  • EEPROM
    • Fix get/put templating
    • Implement other functionality
  • Implement fast_led library functionality (http://fastled.io/)
  • Try to match as close as possible the hardware speed at 8mhz

About

A software implementation of the ATTINY85 code that runs on the DMGC

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published