Skip to content

Commit 606510a

Browse files
committed
comment
1 parent 9171ac4 commit 606510a

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

napi-rust-drivers/src/GDEY029T94.rs

+21-21
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ impl<SPI, RESET, BUSY, DC, CS, E> GDEY029T94Controller<SPI, RESET, BUSY, DC, CS>
177177

178178
self.write_command_with_data(&[0x3C], &[0x00]); // border waveform
179179

180-
self.write_command_with_data(&[0x2C], &[0x1C]); // VCOM Voltage
180+
self.write_command_with_data(&[0x2C], &[0x30]); // VCOM Voltage
181181

182182
self.write_command_with_data(&[0x3F], &[0x22]); // EOPQ, Option for LUT end: 'normal'
183183

184-
self.write_command_with_data(&[0x03], &[0x17]); // VGH, 20V (that's the max btw)
184+
self.write_command_with_data(&[0x03], &[0x15]); // VGH, 19V
185185

186186
self.write_command(&[0x04]); // source driving voltage control
187187
self.write_data(&[0x41]); // VSH1: 15V
188-
self.write_data(&[0x00]); // VSH2: NA
188+
self.write_data(&[0xA8]); // VSH2: 5V
189189
self.write_data(&[0x32]); // VSL : -15V
190190

191191
self.write_command(&[0x32]); // write LUT
@@ -416,24 +416,24 @@ impl<SPI, RESET, BUSY, DC, CS, E> GDEY029T94Controller<SPI, RESET, BUSY, DC, CS>
416416
fn get_4_grayscale_lut() -> WaveformLut {
417417
WaveformLut{
418418
lut: [
419-
0x40, 0x48, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
420-
0x8, 0x48, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
421-
0x2, 0x48, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
422-
0x20, 0x48, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
423-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
424-
0xA, 0x19, 0x0, 0x3, 0x8, 0x0, 0x0,
425-
0x14, 0x1, 0x0, 0x14, 0x1, 0x0, 0x3,
426-
0xA, 0x3, 0x0, 0x8, 0x19, 0x0, 0x0,
427-
0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
428-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
429-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
430-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
431-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
432-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
433-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
434-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
435-
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
436-
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x0, 0x0, 0x0,
419+
0x50,0x90,0xA0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
420+
0x40,0x90,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
421+
0x80,0x90,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
422+
0xA0,0x90,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
423+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
424+
0x01,0x09,0x00,0x00,0x00,0x00,0x00,
425+
0x02,0x02,0x13,0x00,0x00,0x00,0x00,
426+
0x01,0x09,0x00,0x00,0x00,0x00,0x00,
427+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
428+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
429+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
430+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
431+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
432+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
433+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
434+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
435+
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
436+
0x22,0x22,0x22,0x22,0x22,0x22,0x00,0x00,0x00,
437437
]
438438
}
439439
}

0 commit comments

Comments
 (0)