Skip to content

Commit 9ab3dc8

Browse files
Merge branch 'main' into pb-eye-fix
2 parents 9319336 + 32b3a54 commit 9ab3dc8

556 files changed

Lines changed: 181370 additions & 1857 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/githubci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
arduino-platform: ["uno", "nrf52832", "cpx_ada", "pyportal", "protrinket_3v", "protrinket_5v", "metro_m0", "esp8266", "esp32", "trinket_3v", "trinket_5v", "gemma", "flora", "feather32u4", "feather_m0_express", "gemma_m0", "trinket_m0", "hallowing_m0", "monster_m4sk", "hallowing_m4", "hallowing_m4_tinyusb", "neotrellis_m4", "pybadge", "cpb", "cpc", "funhouse", "magtag"]
11-
10+
arduino-platform: ["uno", "nrf52832", "cpx_ada", "pyportal", "protrinket_3v", "protrinket_5v", "metro_m0", "esp8266", "esp32", "trinket_3v", "gemma", "flora", "feather32u4", "feather_m0_express", "gemma_m0", "trinket_m0", "hallowing_m0", "monster_m4sk", "hallowing_m4", "hallowing_m4_tinyusb", "neotrellis_m4", "pybadge", "cpb", "cpc", "funhouse", "magtag"]
11+
# "trinket_5v", was removed
1212
runs-on: ubuntu-18.04
1313

1414
steps:
@@ -50,9 +50,9 @@ jobs:
5050
- name: Versions
5151
run: |
5252
python3 --version
53-
- name: Pip install pylint, black, & Sphinx
53+
- name: Pip install pylint
5454
run: |
55-
pip install --force-reinstall pylint==1.9.2
55+
pip install --force-reinstall pylint==2.7.1
5656
- name: Checkout Current Repo
5757
uses: actions/checkout@v2
5858

.github/workflows/images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- cron: '0 10 * * *'
66
workflow_dispatch:
77
push:
8-
branches: [master]
8+
branches: [main]
99

1010
concurrency:
1111
group: folder-images

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Anne Barela <mydigitalhome@gmail.com>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3D_Printed_LED_Microphone_Flag/3D_Printed_LED_Microphone_Flag.py 137: Consider using tuple unpacking for swapping variables (consider-swap-variables)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ABC_Soundboards_for_NeoTrellis/code.py 169: Comparison 'currently_playing['voice'] != None' should be 'currently_playing['voice'] is not None' (singleton-comparison)
2+
ABC_Soundboards_for_NeoTrellis/code.py 186: Comparison 'currently_playing['voice'] != None' should be 'currently_playing['voice'] is not None' (singleton-comparison)

AHT20_OLED/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=128, height=32)
2626

2727
# Make the display context
28-
splash = displayio.Group(max_size=8)
28+
splash = displayio.Group()
2929
display.show(splash)
3030

3131
text = "hello world"
32-
text_area = label.Label(terminalio.FONT, color=0xFFFF00, x=15, y=0, max_glyphs=200)
32+
text_area = label.Label(terminalio.FONT, color=0xFFFF00, x=15, y=0)
3333
splash.append(text_area)
3434

3535
while True:

Adafruit_ItsyBitsy_RP2040/neopixel_rainbow/code.py

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adafruit_MAX98357/I2S_Test_Script.py 30: Unnecessary "else" after "continue" (no-else-continue)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""CircuitPython Digital Input example for MacroPad"""
2+
import board
3+
import digitalio
4+
5+
led = digitalio.DigitalInOut(board.LED)
6+
led.direction = digitalio.Direction.OUTPUT
7+
8+
button = digitalio.DigitalInOut(board.BUTTON)
9+
button.switch_to_input(pull=digitalio.Pull.UP)
10+
11+
while True:
12+
if not button.value:
13+
led.value = True
14+
else:
15+
led.value = False

Adafruit_MacroPad/MacroPad/code.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""Keypad and rotary encoder example for Adafruit MacroPad"""
2+
import board
3+
import digitalio
4+
import rotaryio
5+
import neopixel
6+
import keypad
7+
from rainbowio import colorwheel
8+
9+
10+
key_pins = (board.KEY1, board.KEY2, board.KEY3, board.KEY4, board.KEY5, board.KEY6,
11+
board.KEY7, board.KEY8, board.KEY9, board.KEY10, board.KEY11, board.KEY12)
12+
keys = keypad.Keys(key_pins, value_when_pressed=False, pull=True)
13+
14+
encoder = rotaryio.IncrementalEncoder(board.ROTA, board.ROTB)
15+
button = digitalio.DigitalInOut(board.BUTTON)
16+
button.switch_to_input(pull=digitalio.Pull.UP)
17+
18+
pixels = neopixel.NeoPixel(board.NEOPIXEL, 12, brightness=0.2)
19+
20+
last_position = None
21+
while True:
22+
if not button.value:
23+
pixels.brightness = 1.0
24+
else:
25+
pixels.brightness = 0.2
26+
27+
position = encoder.position
28+
if last_position is None or position != last_position:
29+
print("Rotary:", position)
30+
last_position = position
31+
32+
color_value = (position * 2) % 255
33+
34+
event = keys.events.get()
35+
if event:
36+
print(event)
37+
if event.pressed:
38+
pixels[event.key_number] = colorwheel(color_value)
39+
else:
40+
pixels[event.key_number] = 0

0 commit comments

Comments
 (0)