https://github.com/M-Eldin/Adafruit-MacroPad-RP2040-Sleep
Sleep Functionality for Adafruit MacroPad RP2040
https://github.com/M-Eldin/Adafruit-MacroPad-RP2040-Sleep
Last synced: 5 months ago
JSON representation
Sleep Functionality for Adafruit MacroPad RP2040
- Host: GitHub
- URL: https://github.com/M-Eldin/Adafruit-MacroPad-RP2040-Sleep
- Owner: M-Eldin
- License: unlicense
- Created: 2022-02-09T16:28:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-18T19:07:43.000Z (about 3 years ago)
- Last Synced: 2024-08-03T03:03:20.317Z (9 months ago)
- Language: Python
- Size: 48.8 KB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-macropad - sleep after 5 minutes - eldin (Other)
README
# Adafruit-MacroPad-RP2040
Sleep Functionality for Adafruit MacroPad RP2040## Details
**This is a modification of AdaFruit project bundle found [here](https://learn.adafruit.com/macropad-hotkeys/project-code)**
_specifically_
changes to
- code.py file
- addition of `adafruit_displayio_sh1107_wrapper.py` to lib
- addition of `autoscreen.py` to lib## Setting Time to Sleep
in `code.py`
```python
# MAIN LOOP ----------------------------autoscreen = AutoOffScreen(60 * 5)
```
_after 5 minutes of inactivey, MacroPad enters sleep_## Troubleshooting
_After copying over files, Macropad updates but screen turns off and does not "wake"_
- Press Reset button after adding files to CIRCUITPY directory
