Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Sep 6, 2023
1 parent 9171ac4 commit 606510a
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions napi-rust-drivers/src/GDEY029T94.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ impl<SPI, RESET, BUSY, DC, CS, E> GDEY029T94Controller<SPI, RESET, BUSY, DC, CS>

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

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

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

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

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

self.write_command(&[0x32]); // write LUT
Expand Down Expand Up @@ -416,24 +416,24 @@ impl<SPI, RESET, BUSY, DC, CS, E> GDEY029T94Controller<SPI, RESET, BUSY, DC, CS>
fn get_4_grayscale_lut() -> WaveformLut {
WaveformLut{
lut: [
0x40, 0x48, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x8, 0x48, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x2, 0x48, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x20, 0x48, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0xA, 0x19, 0x0, 0x3, 0x8, 0x0, 0x0,
0x14, 0x1, 0x0, 0x14, 0x1, 0x0, 0x3,
0xA, 0x3, 0x0, 0x8, 0x19, 0x0, 0x0,
0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x0, 0x0, 0x0,
0x50,0x90,0xA0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x90,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x80,0x90,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xA0,0x90,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x09,0x00,0x00,0x00,0x00,0x00,
0x02,0x02,0x13,0x00,0x00,0x00,0x00,
0x01,0x09,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x22,0x22,0x22,0x22,0x22,0x22,0x00,0x00,0x00,
]
}
}

0 comments on commit 606510a

Please sign in to comment.