default lib is bcm2835, A few minor fixes
This commit is contained in:
parent
98dc64b8c2
commit
74e3e40f5c
20 changed files with 574 additions and 12 deletions
|
|
@ -79,6 +79,7 @@ class EPD:
|
|||
self.send_command(0x71)
|
||||
busy = epdconfig.digital_read(self.busy_pin)
|
||||
epdconfig.delay_ms(200)
|
||||
logging.debug("e-Paper busy release")
|
||||
|
||||
def init(self):
|
||||
if (epdconfig.module_init() != 0):
|
||||
|
|
@ -86,6 +87,12 @@ class EPD:
|
|||
# EPD hardware init start
|
||||
self.reset()
|
||||
|
||||
self.send_command(0x06) # btst
|
||||
self.send_data(0x17)
|
||||
self.send_data(0x17)
|
||||
self.send_data(0x28) # If an exception is displayed, try using 0x38
|
||||
self.send_data(0x17)
|
||||
|
||||
self.send_command(0x01) #POWER SETTING
|
||||
self.send_data(0x07)
|
||||
self.send_data(0x07) #VGH=20V,VGL=-20V
|
||||
|
|
|
|||
|
|
@ -73,13 +73,20 @@ class EPD:
|
|||
self.send_command(0x71)
|
||||
busy = epdconfig.digital_read(self.busy_pin)
|
||||
epdconfig.delay_ms(200)
|
||||
|
||||
logging.debug("e-Paper busy release")
|
||||
|
||||
def init(self):
|
||||
if (epdconfig.module_init() != 0):
|
||||
return -1
|
||||
|
||||
self.reset()
|
||||
|
||||
# self.send_command(0x06) # btst
|
||||
# self.send_data(0x17)
|
||||
# self.send_data(0x17)
|
||||
# self.send_data(0x38) # If an exception is displayed, try using 0x38
|
||||
# self.send_data(0x17)
|
||||
|
||||
self.send_command(0x01); #POWER SETTING
|
||||
self.send_data(0x07);
|
||||
self.send_data(0x07); #VGH=20V,VGL=-20V
|
||||
|
|
|
|||
BIN
RaspberryPi_JetsonNano/python/pic/2in13d_1.bmp
Normal file
BIN
RaspberryPi_JetsonNano/python/pic/2in13d_1.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
RaspberryPi_JetsonNano/python/pic/Color7.bmp
Normal file
BIN
RaspberryPi_JetsonNano/python/pic/Color7.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 788 KiB |
BIN
RaspberryPi_JetsonNano/python/pic/Pico_3in7.bmp
Normal file
BIN
RaspberryPi_JetsonNano/python/pic/Pico_3in7.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
BIN
RaspberryPi_JetsonNano/python/pic/image_black.bmp
Normal file
BIN
RaspberryPi_JetsonNano/python/pic/image_black.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
RaspberryPi_JetsonNano/python/pic/image_red.bmp
Normal file
BIN
RaspberryPi_JetsonNano/python/pic/image_red.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
Loading…
Add table
Add a link
Reference in a new issue