Skip to content

Commit cad8fcd

Browse files
authored
Merge pull request #255 from adafruit/add-i2c-output-components
Add I2C Output Component Type and Related Components
2 parents fe956ca + 3ffe13b commit cad8fcd

File tree

18 files changed

+197
-3
lines changed

18 files changed

+197
-3
lines changed

.github/workflows/validate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
componentType: [pin, i2c, servo, ds18x20, pwm, pixel, uart]
18+
componentType: [pin, i2c, i2c_output, servo, ds18x20, pwm, pixel, uart]
1919

2020
name: Validate ${{ matrix.componentType }} Component Definition Files
2121
steps:
@@ -84,10 +84,10 @@ jobs:
8484
EXIT_VALUE=0
8585
8686
# external contributors can modify some files
87-
EXTERNAL_REGEX="^components\/(pin|i2c|servo|ds18x20|pwm|pixel|uart)\/.*\/(definition\.json|image\.(png|jpe?g|gif))$"
87+
EXTERNAL_REGEX="^components\/(pin|i2c|servo|ds18x20|pwm|pixel|uart|i2c_output)\/.*\/(definition\.json|image\.(png|jpe?g|gif))$"
8888
8989
# folks with write access to the repo (Adafruit team) can change more sensitive files
90-
INTERNAL_REGEX="^(\.github\/.*|components\/(sensors.json|(pin|i2c|servo|ds18x20|pwm|pixel|uart)\/(schema.json|.*\/(definition\.json|image\.(png|jpe?g|gif)))))$"
90+
INTERNAL_REGEX="^(\.github\/.*|components\/(sensors.json|(pin|i2c|servo|ds18x20|pwm|pixel|uart|i2c_output)\/(schema.json|.*\/(definition\.json|image\.(png|jpe?g|gif)))))$"
9191
9292
# apply the appropriate regex based on permissions of the user
9393
if [[ $CAN_WRITE_TO_REPO ]]; then
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"displayName": "7-Segment LED Matrix",
3+
"published": true,
4+
"vendor": "Adafruit",
5+
"productURL": "https://www.adafruit.com/product/878",
6+
"documentationURL": "https://learn.adafruit.com/adafruit-led-backpack/0-dot-56-seven-segment-backpack",
7+
"description": "7-Segment LED Matrix with I2C Backpack",
8+
"i2cAddresses": [ "0x70", "0x71", "0x72", "0x73", "0x74", "0x75", "0x76", "0x77" ],
9+
"outputType": "7SEG",
10+
"ledBackpackAlignment": "RIGHT",
11+
"ledBackpackBrightness": 8
12+
}
71.2 KB
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"displayName": "16x2 Character Display",
3+
"published": true,
4+
"vendor": "Adafruit",
5+
"productURL": "https://www.adafruit.com/product/1447",
6+
"documentationURL": "https://learn.adafruit.com/i2c-spi-lcd-backpack",
7+
"description": "Standard 16x2 HD44780 character display with I2C backpack",
8+
"i2cAddresses": [ "0x20", "0x21", "0x22", "0x23", "0x24", "0x25", "0x26", "0x27" ],
9+
"outputType": "CHARLCD",
10+
"charLcdColumns": 16,
11+
"charLcdRows": 2
12+
}
60.1 KB
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"displayName": "20x4 Character Display",
3+
"published": true,
4+
"vendor": "Adafruit",
5+
"productURL": "https://www.adafruit.com/product/198",
6+
"documentationURL": "https://learn.adafruit.com/i2c-spi-lcd-backpack",
7+
"description": "Standard 20x4 HD44780 character display with I2C backpack",
8+
"i2cAddresses": [ "0x20", "0x21", "0x22", "0x23", "0x24", "0x25", "0x26", "0x27" ],
9+
"outputType": "CHARLCD",
10+
"charLcdColumns": 20,
11+
"charLcdRows": 4
12+
}
34 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"displayName": "128x32 OLED (Default)",
3+
"published": true,
4+
"vendor": "Adafruit",
5+
"productURL": "https://www.adafruit.com/product/4440",
6+
"documentationURL": "https://learn.adafruit.com/monochrome-oled-breakouts",
7+
"description": "Monochrome 128x32 OLED graphic display with the default font size.",
8+
"i2cAddresses": [ "0x3C" ],
9+
"outputType": "OLED",
10+
"oledWidth": 128,
11+
"oledHeight": 32,
12+
"textSize": "SZ_DEFAULT"
13+
}
77.9 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"displayName": "128x32 OLED (Large Font)",
3+
"published": true,
4+
"vendor": "Adafruit",
5+
"productURL": "https://www.adafruit.com/product/4440",
6+
"documentationURL": "https://learn.adafruit.com/monochrome-oled-breakouts",
7+
"description": "Monochrome 128x32 I2C OLED Display with a larger font size",
8+
"i2cAddresses": [ "0x3C" ],
9+
"outputType": "OLED",
10+
"oledWidth": 128,
11+
"oledHeight": 32,
12+
"textSize": "SZ_LARGE"
13+
}

0 commit comments

Comments
 (0)