Skip to content

Commit b7b3119

Browse files
committed
Add font size to schema (textSize / text_size in proto)
1 parent 0507621 commit b7b3119

File tree

6 files changed

+18
-5
lines changed

6 files changed

+18
-5
lines changed

components/display/eink-29-grayscale-ili0373/definition.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"epdConfig": {
1515
"mode": "grayscale4",
1616
"width": 296,
17-
"height": 128
17+
"height": 128,
18+
"textSize": 3
1819
}
1920
}
2021
}

components/display/eink-29-grayscale-ssd1680/definition.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"epdConfig": {
1515
"mode": "mono",
1616
"width": 296,
17-
"height": 128
17+
"height": 128,
18+
"textSize": 3
1819
}
1920
}
2021
}

components/display/eink-magtag/definition.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"epdConfig": {
1515
"mode": "unspecified",
1616
"width": 296,
17-
"height": 128
17+
"height": 128,
18+
"textSize": 3
1819
}
1920
}
2021
}

components/display/schema.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@
113113
"description": "Height of the EPD display, in pixels",
114114
"type": "integer",
115115
"minimum": 1
116+
},
117+
"textSize": {
118+
"type": "integer",
119+
"description": "The default text size for the display (Scale of 8x5 px font) - Possibly Driver specific translation"
116120
}
117121
},
118122
"tftConfig": {
@@ -135,6 +139,10 @@
135139
"rotation": {
136140
"type": "integer",
137141
"enum": [0, 1, 2, 3]
142+
},
143+
"textSize": {
144+
"type": "integer",
145+
"description": "The default text size for the display (Scale of 8x5 px font) - Possibly Driver specific translation"
138146
}
139147
}
140148
}

components/display/tft-114/definition.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"tftConfig": {
1515
"height": 240,
1616
"width": 135,
17-
"rotation": 3
17+
"rotation": 3,
18+
"textSize": 3
1819
}
1920
}
2021
}

components/display/tft-154-wide-angle/definition.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"tftConfig": {
1515
"height": 240,
1616
"width": 240,
17-
"rotation": 0
17+
"rotation": 0,
18+
"textSize": 3
1819
}
1920
}
2021
}

0 commit comments

Comments
 (0)