Skip to content

Commit

Permalink
Merge pull request #14 from mchilli/update-1.4
Browse files Browse the repository at this point in the history
Update 1.4
  • Loading branch information
mchilli authored Oct 31, 2024
2 parents 5e277ee + 2d577d3 commit 626aee5
Show file tree
Hide file tree
Showing 13 changed files with 704 additions and 202 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is an [Adafruit MacroPad](https://www.adafruit.com/product/5128) script tha
- Groups can store more macros or groups
- Define encoder macros for different groups
- Choose colors for every single macro or group
- Up to about **400** key configs, depending on the size of the macros
- Save your configurations locally by downloading it as a JSON file

- Device settings:
Expand All @@ -35,7 +36,9 @@ If you are happy with your configuration don't forget to `Store`! Otherwise your

#### Other Informations:

Your can enable the USB storage either by pressing the yellow blinking key (top, left) when plugin the device, you can enable it through the WebUI under "reboot" or you can set a macro with the device function "enable_usb".
Your can enable the USB storage either by pressing the yellow blinking key (top, left) when plugging the device, enable it through the WebUI under "reboot" or you can set a macro with the device function "enable_usb".

To play **mono** audio files such as .mp3 or .wav, place them on the macropad and define the path to the file in the WebUI. The available files are listed in the macro after the connection has been established. Keep in mind that the macropad is blocked during playback. So make sure that the sound files are not too long!

#### Ideas:

Expand Down
13 changes: 3 additions & 10 deletions circuitpython/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,14 @@
import supervisor
import usb_cdc

USBENABLEDFILE = "usbenabled"


def file_exist(file):
try:
os.stat(file)
return True
except OSError:
return False
from utils.utils import path_exist

USBENABLEDFILE = "usbenabled"

supervisor.set_usb_identification('MCHilli', 'MacroPad by MCHilli')

usb_enabled = False
if file_exist(USBENABLEDFILE):
if path_exist(USBENABLEDFILE):
usb_enabled = True
storage.remount("/", readonly=False)
os.remove(USBENABLEDFILE)
Expand Down
Loading

0 comments on commit 626aee5

Please sign in to comment.