Skip to content

Commit

Permalink
Working version with CircuitPython 8.x (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
deckerego authored Mar 2, 2023
1 parent 9c6ebb3 commit a8c1e56
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [ published ]

env:
adafruit-bundle: '20220907'
adafruit-bundle: '20230301'

jobs:
package:
Expand All @@ -20,11 +20,11 @@ jobs:
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: Download the Adafruit CircuitPython Bundle
run: |
curl -L https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/download/${{ env.adafruit-bundle }}/adafruit-circuitpython-bundle-7.x-mpy-${{ env.adafruit-bundle }}.zip -o adafruit-circuitpython-bundle.zip
curl -L https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/download/${{ env.adafruit-bundle }}/adafruit-circuitpython-bundle-8.x-mpy-${{ env.adafruit-bundle }}.zip -o adafruit-circuitpython-bundle.zip
unzip adafruit-circuitpython-bundle.zip
mkdir -p ~/.adafruit-circuitpython-bundle
mv adafruit-circuitpython-bundle-7.x-mpy-${{ env.adafruit-bundle }}/* ~/.adafruit-circuitpython-bundle/
rmdir adafruit-circuitpython-bundle-7.x-mpy-${{ env.adafruit-bundle }}
mv adafruit-circuitpython-bundle-8.x-mpy-${{ env.adafruit-bundle }}/* ~/.adafruit-circuitpython-bundle/
rmdir adafruit-circuitpython-bundle-8.x-mpy-${{ env.adafruit-bundle }}
- name: Copy Adafruit Libraries
run: |
cp -a \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ to your DAW.
## Installing

First make sure that your Macropad has the
[latest version of CircuitPython installed](https://circuitpython.org/board/adafruit_macropad_rp2040/).
[latest version of CircuitPython 8.x installed](https://circuitpython.org/board/adafruit_macropad_rp2040/).
See [https://learn.adafruit.com/adafruit-macropad-rp2040/circuitpython](https://learn.adafruit.com/adafruit-macropad-rp2040/circuitpython)
for instructions on how to update the Macropad to have the latest version of
CircuitPython.
Expand Down
2 changes: 0 additions & 2 deletions chords.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def create_label(text, anchor_position, anchor_point, color=0xFFFFFF):

def refresh(self):
self.display.auto_refresh = False
self.display.auto_brightness = True
self.display.brightness = self.scaled_brightness
self.display.show(self.group)
self.display.refresh()
Expand All @@ -117,7 +116,6 @@ def wake(self):
self.display.refresh()

def sleep(self):
self.display.auto_brightness = False
self.display.brightness = 0
self.display.refresh()

Expand Down
2 changes: 0 additions & 2 deletions controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def adjust(self, key, control_value):

def reload(self):
self.display.auto_refresh = False
self.display.auto_brightness = True
self.display.brightness = self.scaled_brightness

self.group[13].anchored_position=(self.display.width//2, -2)
Expand All @@ -123,7 +122,6 @@ def wake(self):
self.display.refresh()

def sleep(self):
self.display.auto_brightness = False
self.display.brightness = 0
self.display.refresh()

Expand Down
2 changes: 0 additions & 2 deletions drums.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def __init__(self, macropad, brightness):

def refresh(self):
self.display.auto_refresh = False
self.display.auto_brightness = True
self.display.brightness = self.scaled_brightness
self.display.show(self.group)
self.display.refresh()
Expand All @@ -108,7 +107,6 @@ def wake(self):
self.display.refresh()

def sleep(self):
self.display.auto_brightness = False
self.display.brightness = 0
self.display.refresh()

Expand Down
2 changes: 0 additions & 2 deletions scales.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def create_label(text, anchor_position, anchor_point, color=0xFFFFFF):

def refresh(self):
self.display.auto_refresh = False
self.display.auto_brightness = True
self.display.brightness = self.scaled_brightness
self.display.show(self.group)
self.display.refresh()
Expand All @@ -111,7 +110,6 @@ def wake(self):
self.display.refresh()

def sleep(self):
self.display.auto_brightness = False
self.display.brightness = 0
self.display.refresh()

Expand Down

0 comments on commit a8c1e56

Please sign in to comment.