Add OLED displays!
This commit is contained in:
parent
d4eeb7f7da
commit
43f5bf252f
9 changed files with 70 additions and 1 deletions
13
components/i2c_output/oled128x32default/definition.json
Normal file
13
components/i2c_output/oled128x32default/definition.json
Normal 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"
|
||||
}
|
||||
BIN
components/i2c_output/oled128x32default/image.png
Normal file
BIN
components/i2c_output/oled128x32default/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 153 KiB |
13
components/i2c_output/oled128x32large/definition.json
Normal file
13
components/i2c_output/oled128x32large/definition.json
Normal 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"
|
||||
}
|
||||
BIN
components/i2c_output/oled128x32large/image.png
Normal file
BIN
components/i2c_output/oled128x32large/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 153 KiB |
13
components/i2c_output/oled128x64default/definition.json
Normal file
13
components/i2c_output/oled128x64default/definition.json
Normal 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"
|
||||
}
|
||||
BIN
components/i2c_output/oled128x64default/image.png
Normal file
BIN
components/i2c_output/oled128x64default/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
13
components/i2c_output/oled128x64large/definition.json
Normal file
13
components/i2c_output/oled128x64large/definition.json
Normal 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"
|
||||
}
|
||||
BIN
components/i2c_output/oled128x64large/image.png
Normal file
BIN
components/i2c_output/oled128x64large/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
|
|
@ -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)$"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue