Skip to content

Commit 43f5bf2

Browse files
committed
Add OLED displays!
1 parent d4eeb7f commit 43f5bf2

File tree

9 files changed

+70
-1
lines changed

9 files changed

+70
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"displayName": "128x32 OLED (Default Font)",
3+
"published": true,
4+
"vendor": "Adafruit",
5+
"productURL": "https://www.adafruit.com/product/938",
6+
"documentationURL": "https://learn.adafruit.com/monochrome-oled-breakouts",
7+
"description": "Monochrome 128x32 OLED graphic display with the default font size.",
8+
"i2cAddresses": [ "0x3D" ],
9+
"outputType": "OLED",
10+
"oledWidth": 128,
11+
"oledHeight": 32,
12+
"textSize": "SZ_DEFAULT"
13+
}
153 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+
}
153 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"displayName": "128x64 OLED (Default 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 128x64 I2C OLED Display with the default font size.",
8+
"i2cAddresses": [ "0x3C" ],
9+
"outputType": "OLED",
10+
"oledWidth": 128,
11+
"oledHeight": 64,
12+
"textSize": "SZ_DEFAULT"
13+
}
75.1 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"displayName": "128x64 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 128x64 I2C OLED Display with a larger font size.",
8+
"i2cAddresses": [ "0x3C" ],
9+
"outputType": "OLED",
10+
"oledWidth": 128,
11+
"oledHeight": 64,
12+
"textSize": "SZ_LARGE"
13+
}
75.1 KB
Loading

components/i2c_output/schema.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"outputType": {
4949
"description": "The type of i2c output component. Corresponds to `I2cOutputAdd` in i2c.proto",
5050
"type": "string",
51-
"pattern": "^(CHARLCD|7SEG|ALPHANUM)$"
51+
"pattern": "^(CHARLCD|7SEG|ALPHANUM|OLED)$"
5252
},
5353
"charLcdColumns": {
5454
"description": "The number of columns for a character LCD. Corresponds to `CharLCDConfig` in i2c.proto.",
@@ -72,6 +72,23 @@
7272
"type": "number",
7373
"minimum": 0,
7474
"maximum": 15
75+
},
76+
"oledWidth": {
77+
"description": "The width of an OLED display, in pixels.",
78+
"type": "number",
79+
"minimum": 0,
80+
"maximum": 128
81+
},
82+
"oledHeight": {
83+
"description": "The height of an OLED display, in pixels.",
84+
"type": "number",
85+
"minimum": 0,
86+
"maximum": 64
87+
},
88+
"textSize": {
89+
"description": "The font magnification size for a OLED display. Corresponds to `SSD1306TextSize` in i2c.proto.",
90+
"type": "string",
91+
"pattern": "^(SZ_DEFAULT|SZ_LARGE)$"
7592
}
7693
}
7794
}

0 commit comments

Comments
 (0)