Add OLED displays!

This commit is contained in:
brentru 2025-05-20 15:42:04 -04:00
parent d4eeb7f7da
commit 43f5bf252f
9 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,13 @@
{
"displayName": "128x32 OLED (Default Font)",
"published": true,
"vendor": "Adafruit",
"productURL": "https://www.adafruit.com/product/938",
"documentationURL": "https://learn.adafruit.com/monochrome-oled-breakouts",
"description": "Monochrome 128x32 OLED graphic display with the default font size.",
"i2cAddresses": [ "0x3D" ],
"outputType": "OLED",
"oledWidth": 128,
"oledHeight": 32,
"textSize": "SZ_DEFAULT"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

View file

@ -0,0 +1,13 @@
{
"displayName": "128x32 OLED (Large Font)",
"published": true,
"vendor": "Adafruit",
"productURL": "https://www.adafruit.com/product/4440",
"documentationURL": "https://learn.adafruit.com/monochrome-oled-breakouts",
"description": "Monochrome 128x32 I2C OLED Display with a larger font size",
"i2cAddresses": [ "0x3C" ],
"outputType": "OLED",
"oledWidth": 128,
"oledHeight": 32,
"textSize": "SZ_LARGE"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

View file

@ -0,0 +1,13 @@
{
"displayName": "128x64 OLED (Default Font)",
"published": true,
"vendor": "Adafruit",
"productURL": "https://www.adafruit.com/product/4440",
"documentationURL": "https://learn.adafruit.com/monochrome-oled-breakouts",
"description": "Monochrome 128x64 I2C OLED Display with the default font size.",
"i2cAddresses": [ "0x3C" ],
"outputType": "OLED",
"oledWidth": 128,
"oledHeight": 64,
"textSize": "SZ_DEFAULT"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View file

@ -0,0 +1,13 @@
{
"displayName": "128x64 OLED (Large Font)",
"published": true,
"vendor": "Adafruit",
"productURL": "https://www.adafruit.com/product/4440",
"documentationURL": "https://learn.adafruit.com/monochrome-oled-breakouts",
"description": "Monochrome 128x64 I2C OLED Display with a larger font size.",
"i2cAddresses": [ "0x3C" ],
"outputType": "OLED",
"oledWidth": 128,
"oledHeight": 64,
"textSize": "SZ_LARGE"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View file

@ -48,7 +48,7 @@
"outputType": {
"description": "The type of i2c output component. Corresponds to `I2cOutputAdd` in i2c.proto",
"type": "string",
"pattern": "^(CHARLCD|7SEG|ALPHANUM)$"
"pattern": "^(CHARLCD|7SEG|ALPHANUM|OLED)$"
},
"charLcdColumns": {
"description": "The number of columns for a character LCD. Corresponds to `CharLCDConfig` in i2c.proto.",
@ -72,6 +72,23 @@
"type": "number",
"minimum": 0,
"maximum": 15
},
"oledWidth": {
"description": "The width of an OLED display, in pixels.",
"type": "number",
"minimum": 0,
"maximum": 128
},
"oledHeight": {
"description": "The height of an OLED display, in pixels.",
"type": "number",
"minimum": 0,
"maximum": 64
},
"textSize": {
"description": "The font magnification size for a OLED display. Corresponds to `SSD1306TextSize` in i2c.proto.",
"type": "string",
"pattern": "^(SZ_DEFAULT|SZ_LARGE)$"
}
}
}