Skip to content

Commit adb5479

Browse files
afaragolaurensvalk
authored andcommitted
pybricks.common.LightMatrix.char: Improve single digits.
1 parent 42f10e1 commit adb5479

File tree

2 files changed

+37
-34
lines changed

2 files changed

+37
-34
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@
1313
correction of the `hub.imu.heading()` value ([support#1678]).
1414
- Added `update_heading_correction` to interactively set the heading
1515
correction value ([support#1678]).
16-
- Reduced hub poweroff time from 3 to 2 second to make it easier to turn off
17-
the hub ([pybricks-micropython#250]).
1816

1917
### Changed
2018

2119
- When upgrading the firmware to a new version, the user program will now
2220
be erased. This avoids issues with incompatible program files ([support#1622]).
2321
- The `angular_velocity_threshold`, and `acceleration_threshold` settings
2422
in `hub.imu.settings` are now persistent between reboots.
23+
- Reduced hub poweroff time from 3 to 2 second to make it easier to turn off
24+
the hub ([pybricks-micropython#250]).
25+
- Improved font for the digits ``0--9`` when displaying them
26+
with `hub.display.char(str(x))` ([pybricks-micropython#253]).
2527

2628
[pybricks-micropython#250]: https://github.com/pybricks/pybricks-micropython/pull/250
29+
[pybricks-micropython#253]: https://github.com/pybricks/pybricks-micropython/pull/253
2730
[support#1615]: https://github.com/pybricks/support/issues/1615
2831
[support#1622]: https://github.com/pybricks/support/issues/1622
2932
[support#1678]: https://github.com/pybricks/support/issues/1678

pybricks/common/pb_type_lightmatrix_fonts.c

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ const uint8_t pb_font_5x5[95][5] = {
196196
0b10000, // 🟨⬛⬛⬛⬛
197197
},
198198
{ // 0
199-
0b01100, // ⬛🟨🟨
200-
0b10010, // 🟨⬛⬛🟨⬛
201-
0b10010, // 🟨⬛⬛🟨⬛
202-
0b10010, // 🟨⬛⬛🟨⬛
203-
0b01100, // ⬛🟨🟨
199+
0b01110, // ⬛🟨🟨🟨
200+
0b01010, // ⬛🟨⬛🟨⬛
201+
0b01010, // ⬛🟨⬛🟨⬛
202+
0b01010, // ⬛🟨⬛🟨⬛
203+
0b01110, // ⬛🟨🟨🟨
204204
},
205205
{ // 1
206206
0b00100, // ⬛⬛🟨⬛⬛
@@ -210,60 +210,60 @@ const uint8_t pb_font_5x5[95][5] = {
210210
0b01110, // ⬛🟨🟨🟨⬛
211211
},
212212
{ // 2
213-
0b11100, // 🟨🟨🟨
213+
0b01110, // 🟨🟨🟨⬛
214214
0b00010, // ⬛⬛⬛🟨⬛
215-
0b01100, // ⬛🟨🟨
216-
0b10000, // 🟨⬛⬛⬛⬛
217-
0b11110, // 🟨🟨🟨🟨⬛
215+
0b01110, // ⬛🟨🟨🟨
216+
0b01000, // ⬛🟨⬛⬛⬛
217+
0b01110, // 🟨🟨🟨⬛
218218
},
219219
{ // 3
220-
0b11110, // 🟨🟨🟨🟨⬛
220+
0b01110, // 🟨🟨🟨⬛
221221
0b00010, // ⬛⬛⬛🟨⬛
222-
0b00100, // ⬛⬛🟨⬛
223-
0b10010, // 🟨⬛⬛🟨⬛
224-
0b01100, // ⬛🟨🟨
222+
0b01110, // ⬛🟨🟨🟨
223+
0b00010, // ⬛⬛🟨⬛
224+
0b01110, // ⬛🟨🟨🟨
225225
},
226226
{ // 4
227-
0b00110, // ⬛⬛🟨🟨⬛
228227
0b01010, // ⬛🟨⬛🟨⬛
229-
0b10010, // 🟨⬛⬛🟨⬛
230-
0b11111, // 🟨🟨🟨🟨🟨
228+
0b01010, // ⬛🟨⬛🟨⬛
229+
0b01110, // ⬛🟨🟨🟨⬛
230+
0b00010, // ⬛⬛⬛🟨⬛
231231
0b00010, // ⬛⬛⬛🟨⬛
232232
},
233233
{ // 5
234-
0b11111, // 🟨🟨🟨🟨🟨
235-
0b10000, // 🟨⬛⬛⬛⬛
236-
0b11110, // 🟨🟨🟨🟨⬛
237-
0b00001, // ⬛⬛⬛⬛🟨
238-
0b11110, // 🟨🟨🟨🟨⬛
234+
0b01110, // 🟨🟨🟨
235+
0b01000, // ⬛🟨⬛⬛⬛
236+
0b01110, // 🟨🟨🟨⬛
237+
0b00010, // ⬛⬛⬛🟨⬛
238+
0b01110, // 🟨🟨🟨⬛
239239
},
240240
{ // 6
241-
0b00010, // ⬛⬛⬛🟨⬛
242-
0b00100, // ⬛⬛🟨⬛⬛
243241
0b01110, // ⬛🟨🟨🟨⬛
244-
0b10001, // 🟨⬛⬛⬛🟨
242+
0b01000, // ⬛🟨⬛⬛⬛
243+
0b01110, // ⬛🟨🟨🟨⬛
244+
0b01010, // ⬛🟨⬛🟨⬛
245245
0b01110, // ⬛🟨🟨🟨⬛
246246
},
247247
{ // 7
248-
0b11111, // 🟨🟨🟨🟨🟨
248+
0b01110, // 🟨🟨🟨
249249
0b00010, // ⬛⬛⬛🟨⬛
250250
0b00100, // ⬛⬛🟨⬛⬛
251-
0b01000, // ⬛🟨⬛⬛⬛
252-
0b10000, // 🟨⬛⬛⬛⬛
251+
0b00100, // ⬛⬛🟨⬛⬛
252+
0b00100, // ⬛⬛🟨⬛⬛
253253
},
254254
{ // 8
255255
0b01110, // ⬛🟨🟨🟨⬛
256-
0b10001, // 🟨⬛⬛⬛🟨
256+
0b01010, // ⬛🟨⬛🟨⬛
257257
0b01110, // ⬛🟨🟨🟨⬛
258-
0b10001, // 🟨⬛⬛⬛🟨
258+
0b01010, // ⬛🟨⬛🟨⬛
259259
0b01110, // ⬛🟨🟨🟨⬛
260260
},
261261
{ // 9
262262
0b01110, // ⬛🟨🟨🟨⬛
263-
0b10001, // 🟨⬛⬛⬛🟨
263+
0b01010, // ⬛🟨⬛🟨⬛
264+
0b01110, // ⬛🟨🟨🟨⬛
265+
0b00010, // ⬛⬛⬛🟨⬛
264266
0b01110, // ⬛🟨🟨🟨⬛
265-
0b00100, // ⬛⬛🟨⬛⬛
266-
0b01000, // ⬛🟨⬛⬛⬛
267267
},
268268
{ // :
269269
0b00000, // ⬛⬛⬛⬛⬛

0 commit comments

Comments
 (0)