MouseBiteLabs / Game-Boy-DMG-Color

An original Game Boy outfitted with Game Boy Color support and other modern features
Other
252 stars 19 forks source link

Attiny sketch improvements #3

Closed coolbho3k closed 1 year ago

coolbho3k commented 1 year ago
  1. Put the Attiny85 into power down sleep mode when not doing anything, saving theoretically ~25 mW (from my experiments, measuring power consumption via the DC jack, the actual savings appears to actually be over 40 mW!)
  2. Add pink after purple - it looks great with many builds.
  3. Adds a rainbow cycle animation. This contains 4 more color modes containing various speeds of rainbow cycle animations. Static rainbow, slow, medium, and fast.
  4. Use EEPROM.update instead of EEPROM.put to save some write cycles, in case anyone was concerned about the 100k write cycles on their Attiny lol. Using update instead of put doesn't write the brightness bit when changing color and vice versa.

How to test power consumption: set screen brightness and sound to the lowest. Toggle LEDs to "off" setting. Measure power consumption to get the "sleeping" value. Now push the button (don't release) to get the "active" value.