Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sparkle motion mini #173

Merged
merged 8 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
FILES: ${{ needs.changed-files.outputs.files }}
steps:
- uses: actions/checkout@v3
- uses: mfinelli/setup-imagemagick@v2
- uses: mfinelli/setup-imagemagick@v6
- name: Validate Image Dimensions
run: |
EXIT_VALUE=0
Expand All @@ -176,15 +176,15 @@ jobs:
fi

# use imagemagick for the width
WIDTH=`identify -ping -format "%w" ${FILE}[0]`
WIDTH=`magick identify -ping -format "%w" ${FILE}[0]`
BAD_WIDTH=false
if [[ "$WIDTH" -gt "$MAX_WIDTH" ]]; then
EXIT_VALUE=1
BAD_WIDTH=true
fi

# use imagemagick for the height
HEIGHT=`identify -ping -format "%h" ${FILE}[0]`
HEIGHT=`magick identify -ping -format "%h" ${FILE}[0]`
BAD_HEIGHT=false
if [[ "$HEIGHT" -gt "$MAX_HEIGHT" ]]; then
EXIT_VALUE=1
Expand Down
158 changes: 158 additions & 0 deletions boards/sparklemotionmini-esp32/definition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"boardName":"sparklemotionmini-esp32",
"mcuName":"ESP32",
"mcuRefVoltage": 3.3,
"displayName":"Adafruit Mini Sparkle Motion",
"vendor":"Adafruit",
"productURL":"https://www.adafruit.com/product/6160",
"documentationURL":"https://learn.adafruit.com/adafruit-sparkle-motion-mini/",
"published": false,
"installMethod":"web",
"esptool": {
"fileSystemSize": 131072,
"blockSize": 4096,
"offset": "0x3D0000",
"chip": "esp32",
"flashMode" : "dio",
"flashFreq" : "80m",
"flashSize" : "4MB",
"structure": {
"0x0": "wippersnapper.sparklemotionmini_esp32.littlefs.VERSION.combined.bin"
}
},
"components": {
"digitalPins": [
{
"name":"D0",
"displayName":"D0 (Button)",
"dataType":"bool"
},
{
"name":"D12",
"displayName":"D12 (LED BUILT-IN)",
"dataType":"bool",
"hasPWM":true
},
{
"name":"D26",
"displayName":"D19 (UART RX)",
"dataType":"bool",
"uartRx": true,
"hasPWM":true,
"hasServo":true
},
{
"name":"D25",
"displayName":"D25 (UART TX)",
"dataType":"bool",
"uartTx": true,
"hasPWM":true,
"hasServo":true
},
{
"name":"D14",
"displayName":"D14",
"dataType":"bool",
"hasPWM":true,
"hasServo":true
},
{
"name":"D18",
"displayName":"D18 (NEOPIXEL)",
"dataType":"bool",
"hasPWM":true
},
{
"name":"D27",
"displayName":"D27",
"dataType":"bool",
"hasPWM":true,
"hasServo":true
},
{
"name":"D13",
"displayName":"D13 (A0)",
"dataType":"bool",
"hasPWM":true,
"hasServo":true
},
{
"name":"D33",
"displayName":"D33",
"dataType":"bool",
"hasPWM":true,
"hasServo":true
},
{
"name":"D32",
"displayName":"D32",
"dataType":"bool",
"hasPWM":true,
"hasServo":true
},
{
"name":"D19",
"displayName":"D19 (SDA)",
"dataType":"bool",
"hasPWM":true,
"hasServo":true
},
{
"name":"D22",
"displayName":"D22 (SCL)",
"dataType":"bool",
"hasPWM":true,
"hasServo":true
}
],
"analogPins": [
{
"name":"A13",
"displayName":"A0 (D13)",
"dataType":"int16",
"hasPWM":true
},
{
"name":"A14",
"displayName":"D14",
"dataType":"int16",
"hasPWM":true
},
{
"name":"A27",
"displayName":"D27",
"dataType":"int16",
"hasPWM":true
},
{
"name":"A25",
"displayName":"D25",
"dataType":"int16",
"hasPWM":true
},
{
"name":"A26",
"displayName":"D26",
"dataType":"int16",
"hasPWM":true
},
{
"name":"A32",
"displayName":"A32",
"dataType":"int16"
},
{
"name":"A33",
"displayName":"A33",
"dataType":"int16"
}
],
"i2cPorts": [
{
"i2cPortId": 0,
"SDA": 19,
"SCL": 22
}
]
}
}
1 change: 1 addition & 0 deletions boards/sparklemotionmini-esp32/image.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions boards/sparklemotionmini-esp32/magic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"exportVersion": "1.0.0",
"exportedBy": "Adafruit",
"exportedAt": "2025-01-23T19:10:27.205Z",
"exportedFromDevice": {
"board": "sparklemotionmini-esp32",
"firmwareVersion": "1.0.0-beta.96"
},
"components": [
{
"name": "Boot Button",
"pinName": "D0",
"type": "push_button",
"mode": "DIGITAL",
"direction": "INPUT",
"period": 0,
"pull": "UP",
"isPin": true
},
{
"name": "D32 5Volt NeoPixels",
"pixelNumber": 1,
"pixelsOrder": "GRB",
"pixelBrightness": 255,
"pinName": "D32",
"type": "neopixel",
"pixelsType": "NEOPIXEL",
"isPixel": true
},
{
"name": "D33 5Volt NeoPixels",
"pixelNumber": 1,
"pixelsOrder": "GRB",
"pixelBrightness": 255,
"pinName": "D33",
"type": "neopixel",
"pixelsType": "NEOPIXEL",
"isPixel": true
},
{
"name": "Dimmable Onboard LED",
"type": "dimmable_led",
"pwmSetting": "fixedFrequency",
"frequency": 5000,
"resolution": 12,
"pinName": "D12",
"isPWM": true
},
{
"name": "Onboard NeoPixel",
"pixelNumber": 1,
"pixelsOrder": "GRB",
"pixelBrightness": 255,
"pinName": "D18",
"type": "neopixel",
"pixelsType": "NEOPIXEL",
"isPixel": true
}
]
}
Loading