def init(self): if (epdconfig.module_init() != 0): return -1 # EPD hardware init start self.reset() self.send_command(0x01) # POWER_SETTING self.send_data(0x37) self.send_data(0x00) self.send_command(0x00) # PANEL_SETTING self.send_data(0xCF) self.send_data(0x08) self.send_command(0x06) # BOOSTER_SOFT_START self.send_data(0xc7) self.send_data(0xcc) self.send_data(0x28) self.send_command(0x04) # POWER_ON self.ReadBusy() self.send_command(0x30) # PLL_CONTROL self.send_data(0x3c) self.send_command(0x41) # TEMPERATURE_CALIBRATION self.send_data(0x00) self.send_command(0x50) # VCOM_AND_DATA_INTERVAL_SETTING self.send_data(0x77) self.send_command(0x60) # TCON_SETTING self.send_data(0x22) self.send_command(0x61) # TCON_RESOLUTION self.send_data(EPD_WIDTH >> 8) #source 640 self.send_data(EPD_WIDTH & 0xff) self.send_data(EPD_HEIGHT >> 8) #gate 384 self.send_data(EPD_HEIGHT & 0xff) self.send_command(0x82) # VCM_DC_SETTING self.send_data(0x1E) # decide by LUT file self.send_command(0xe5) # FLASH MODE self.send_data(0x03) # EPD hardware init end return 0
def init(self): if (epdconfig.module_init() != 0): return -1 self.reset() self.send_command(0x01) #POWER SETTING self.send_data(0x07) self.send_data(0x07) #VGH=20V,VGL=-20V self.send_data(0x3f) #VDH=15V self.send_data(0x3f) #VDL=-15V self.send_command(0x04) #POWER ON epdconfig.delay_ms(100) self.ReadBusy() self.send_command(0X00) #PANNEL SETTING self.send_data(0x0F) #KW-3f KWR-2F BWROTP 0f BWOTP 1f self.send_command(0x61) #tres self.send_data(0x03) #source 800 self.send_data(0x20) self.send_data(0x01) #gate 480 self.send_data(0xE0) self.send_command(0X15) self.send_data(0x00) self.send_command(0X50) #VCOM AND DATA INTERVAL SETTING self.send_data(0x11) self.send_data(0x07) self.send_command(0X60) #TCON SETTING self.send_data(0x22) return 0
def init(self): if (epdconfig.module_init() != 0): return -1 self.reset() self.send_command(0x06) # BOOSTER_SOFT_START self.send_data(0x17) self.send_data(0x17) self.send_data(0x17) # 07 0f 17 1f 27 2F 37 2f self.send_command(0x04) # POWER_ON self.ReadBusy() self.send_command(0x00) # PANEL_SETTING self.send_data(0x0F) # LUT from OTP return 0
def init(self): if (epdconfig.module_init() != 0): return -1 self.reset() self.send_command(0x01) # POWER_SETTING self.send_data(0x37) self.send_data(0x00) self.send_command(0x00) # PANEL_SETTING self.send_data(0xCF) self.send_data(0x08) self.send_command(0x30) # PLL_CONTROL self.send_data(0x3A) # PLL: 0-15:0x3C, 15+:0x3A self.send_command(0x82) # VCM_DC_SETTING self.send_data(0x28) #all temperature range self.send_command(0x06) # BOOSTER_SOFT_START self.send_data(0xc7) self.send_data(0xcc) self.send_data(0x15) self.send_command(0x50) # VCOM AND DATA INTERVAL SETTING self.send_data(0x77) self.send_command(0x60) # TCON_SETTING self.send_data(0x22) self.send_command(0x65) # FLASH CONTROL self.send_data(0x00) self.send_command(0x61) # TCON_RESOLUTION self.send_data(self.width >> 8) # source 640 self.send_data(self.width & 0xff) self.send_data(self.height >> 8) # gate 384 self.send_data(self.height & 0xff) self.send_command(0xe5) # FLASH MODE self.send_data(0x03) return 0
def init(self): if (epdconfig.module_init() != 0): return -1 self.reset() self.send_command(0x01) # POWER_SETTING self.send_data(0x37) self.send_data(0x00) self.send_command(0x00) # PANEL_SETTING self.send_data(0xCF) self.send_data(0x08) self.send_command(0x30) # PLL_CONTROL self.send_data(0x3A) # PLL: 0-15:0x3C, 15+:0x3A self.send_command(0X82) # VCOM VOLTAGE SETTING self.send_data(0x28) # all temperature range self.send_command(0x06) # boost self.send_data(0xc7) self.send_data(0xcc) self.send_data(0x15) self.send_command(0X50) # VCOM AND DATA INTERVAL SETTING self.send_data(0x77) self.send_command(0X60) # TCON SETTING self.send_data(0x22) self.send_command(0X65) # FLASH CONTROL self.send_data(0x00) self.send_command(0x61) # tres self.send_data(0x02) # source 600 self.send_data(0x58) self.send_data(0x01) # gate 448 self.send_data(0xc0) self.send_command(0xe5) # FLASH MODE self.send_data(0x03) self.send_data(0x03) return 0
def init(self): if (epdconfig.module_init() != 0): return -1 # EPD hardware init start self.reset() self.send_command(0x01) # POWER SETTING self.send_data(0x03) # VDS_EN, VDG_EN self.send_data(0x00) # VCOM_HV, VGHL_LV[1], VGHL_LV[0] self.send_data(0x2b) # VDH self.send_data(0x2b) # VDL self.send_command(0x06) # boost soft start self.send_data(0x17) self.send_data(0x17) self.send_data(0x17) self.send_command(0x04) # POWER_ON self.ReadBusy() self.send_command(0x00) # panel setting self.send_data(0xbf) # KW-BF KWR-AF BWROTP 0f self.send_data(0x0d) self.send_command(0x30) # PLL setting self.send_data(0x3c) # 3A 100HZ 29 150Hz 39 200HZ 31 171HZ self.send_command(0x61) # resolution setting self.send_data(0x01) self.send_data(0x90) # 128 self.send_data(0x01) self.send_data(0x2c) self.send_command(0x82) # vcom_DC setting self.send_data(0x28) self.send_command(0X50) # VCOM AND DATA INTERVAL SETTING self.send_data( 0x97 ) # 97white border 77black border VBDF 17|D7 VBDW 97 VBDB 57 VBDF F7 VBDW 77 VBDB 37 VBDR B7 self.set_lut() # EPD hardware init end return 0
def Init_4Gray(self): if (epdconfig.module_init() != 0): return -1 # EPD hardware init start self.reset() self.send_command(0x01) #POWER SETTING self.send_data(0x03) self.send_data(0x00) #VGH=20V,VGL=-20V self.send_data(0x2b) #VDH=15V self.send_data(0x2b) #VDL=-15V self.send_data(0x13) self.send_command(0x06) #booster soft start self.send_data(0x17) #A self.send_data(0x17) #B self.send_data(0x17) #C self.send_command(0x04) self.ReadBusy() self.send_command(0x00) #panel setting self.send_data(0x3f) #KW-3f KWR-2F BWROTP 0f BWOTP 1f self.send_command(0x30) #PLL setting self.send_data(0x3c) #100hz self.send_command(0x61) #resolution setting self.send_data(0x01) #400 self.send_data(0x90) self.send_data(0x01) #300 self.send_data(0x2c) self.send_command(0x82) #vcom_DC setting self.send_data(0x12) self.send_command(0X50) #VCOM AND DATA INTERVAL SETTING self.send_data(0x97)
def init(self): if (epdconfig.module_init() != 0): return -1 self.reset() self.send_command(0x12); #SWRESET self.ReadBusy(); #waiting for the electronic paper IC to release the idle signal self.send_command(0x46); # Auto Write RAM self.send_data(0xF7); self.ReadBusy(); #waiting for the electronic paper IC to release the idle signal self.send_command(0x47); # Auto Write RAM self.send_data(0xF7); self.ReadBusy(); #waiting for the electronic paper IC to release the idle signal self.send_command(0x0C); # Soft start setting self.send_data(0xAE); self.send_data(0xC7); self.send_data(0xC3); self.send_data(0xC0); self.send_data(0x40); self.send_command(0x01); # Set MUX as 527 self.send_data(0xAF); self.send_data(0x02); self.send_data(0x01); self.send_command(0x11); # Data entry mode self.send_data(0x01); self.send_command(0x44); self.send_data(0x00); # RAM x address start at 0 self.send_data(0x00); self.send_data(0x6F); # RAM x address end at 36Fh -> 879 self.send_data(0x03); self.send_command(0x45); self.send_data(0xAF); # RAM y address start at 20Fh; self.send_data(0x02); self.send_data(0x00); # RAM y address end at 00h; self.send_data(0x00); self.send_command(0x3C); # VBD self.send_data(0x01); # LUT1, for white self.send_command(0x18); self.send_data(0X80); self.send_command(0x22); self.send_data(0XB1); #Load Temperature and waveform setting. self.send_command(0x20); self.ReadBusy(); #waiting for the electronic paper IC to release the idle signal self.send_command(0x4E); self.send_data(0x00); self.send_data(0x00); self.send_command(0x4F); self.send_data(0xAF); self.send_data(0x02); return 0