change to b_V3 lib
This commit is contained in:
		
							parent
							
								
									d8659cada6
								
							
						
					
					
						commit
						a655af4e04
					
				@ -8,7 +8,7 @@ if os.path.exists(libdir):
 | 
			
		||||
    sys.path.append(libdir)
 | 
			
		||||
 | 
			
		||||
import logging
 | 
			
		||||
from waveshare_epd import epd2in13b
 | 
			
		||||
from waveshare_epd import epd2in13b_V3
 | 
			
		||||
import time
 | 
			
		||||
from PIL import Image,ImageDraw,ImageFont
 | 
			
		||||
import traceback
 | 
			
		||||
@ -32,7 +32,7 @@ pw = "phio6yiR9ohs1veeghu4WaeGhaiRi8he4EiWasheev4faeku8tohdiuthah7zahP"
 | 
			
		||||
client_id = "solarmonitor"
 | 
			
		||||
 | 
			
		||||
try:
 | 
			
		||||
    epd = epd2in13b.EPD()
 | 
			
		||||
    epd = epd2in13b_V3.EPD()
 | 
			
		||||
    logging.info("init and Clear")
 | 
			
		||||
    epd.init()
 | 
			
		||||
    epd.Clear()
 | 
			
		||||
@ -43,7 +43,7 @@ except IOError as e:
 | 
			
		||||
    
 | 
			
		||||
except KeyboardInterrupt:    
 | 
			
		||||
    logging.info("ctrl + c:")
 | 
			
		||||
    epd2in13b.epdconfig.module_exit()
 | 
			
		||||
    epd2in13b_V3.epdconfig.module_exit()
 | 
			
		||||
    exit()
 | 
			
		||||
 | 
			
		||||
def on_connect(client, userdata, flags, rc):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user