Skip to content

Commit 5d39414

Browse files
authored
Merge pull request #8075 from mariobodemann/badger2040-increase-contrast
Update badger2040 start sequence for more contrast
2 parents c408193 + 1e3f1d7 commit 5d39414

File tree

1 file changed

+15
-15
lines changed
  • ports/raspberrypi/boards/pimoroni_badger2040

1 file changed

+15
-15
lines changed

ports/raspberrypi/boards/pimoroni_badger2040/board.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ const uint8_t display_start_sequence[] = {
206206
// Look up tables for voltage sequence for pixel transition
207207
// Common voltage
208208
LUT_VCOM, 44,
209-
0x00, 0x16, 0x16, 0x0d, 0x00, 0x01,
210-
0x00, 0x23, 0x23, 0x00, 0x00, 0x02,
211-
0x00, 0x16, 0x16, 0x0d, 0x00, 0x01,
209+
0x00, 0x64, 0x64, 0x37, 0x00, 0x01,
210+
0x00, 0x8c, 0x8c, 0x00, 0x00, 0x04,
211+
0x00, 0x64, 0x64, 0x37, 0x00, 0x01,
212212
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
213213
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
214214
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -217,39 +217,39 @@ const uint8_t display_start_sequence[] = {
217217

218218
// White to white
219219
LUT_WW, 42,
220-
0x54, 0x16, 0x16, 0x0d, 0x00, 0x01,
221-
0x60, 0x23, 0x23, 0x00, 0x00, 0x02,
222-
0xa8, 0x16, 0x16, 0x0d, 0x00, 0x01,
220+
0x54, 0x64, 0x64, 0x37, 0x00, 0x01,
221+
0x60, 0x8c, 0x8c, 0x00, 0x00, 0x04,
222+
0xa8, 0x64, 0x64, 0x37, 0x00, 0x01,
223223
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
224224
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
225225
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
226226
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
227227

228228
// Black to white
229229
LUT_BW, 42,
230-
0x54, 0x16, 0x16, 0x0d, 0x00, 0x01,
231-
0x60, 0x23, 0x23, 0x00, 0x00, 0x02,
232-
0xa8, 0x16, 0x16, 0x0d, 0x00, 0x01,
230+
0x54, 0x64, 0x64, 0x37, 0x00, 0x01,
231+
0x60, 0x8c, 0x8c, 0x00, 0x00, 0x04,
232+
0xa8, 0x64, 0x64, 0x37, 0x00, 0x01,
233233
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
234234
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
235235
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
236236
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
237237

238238
// White to black
239239
LUT_WB, 42,
240-
0xa8, 0x16, 0x16, 0x0d, 0x00, 0x01,
241-
0x60, 0x23, 0x23, 0x00, 0x00, 0x02,
242-
0x54, 0x16, 0x16, 0x0d, 0x00, 0x01,
240+
0xa8, 0x64, 0x64, 0x37, 0x00, 0x01,
241+
0x60, 0x8c, 0x8c, 0x00, 0x00, 0x04,
242+
0x54, 0x64, 0x64, 0x37, 0x00, 0x01,
243243
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
244244
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
245245
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
246246
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
247247

248248
// Black to black
249249
LUT_BB, 42,
250-
0xa8, 0x16, 0x16, 0x0d, 0x00, 0x01,
251-
0x60, 0x23, 0x23, 0x00, 0x00, 0x02,
252-
0x54, 0x16, 0x16, 0x0d, 0x00, 0x01,
250+
0xa8, 0x64, 0x64, 0x37, 0x00, 0x01,
251+
0x60, 0x8c, 0x8c, 0x00, 0x00, 0x04,
252+
0x54, 0x64, 0x64, 0x37, 0x00, 0x01,
253253
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
254254
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
255255
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

0 commit comments

Comments
 (0)