Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-18T19:07:43.000Z (almost 3 years ago)
- Last Synced: 2024-08-03T03:03:20.317Z (5 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
![adafruit_products_MacroPad_boot_reset](https://user-images.githubusercontent.com/85906111/153274775-de28b512-bf4d-4843-bfbb-d65cfec14ca8.png)