Update stable.py
This commit is contained in:
		| @@ -25,7 +25,7 @@ api_key = "" | |||||||
| location = "California, US" | location = "California, US" | ||||||
| week_starts_on = "Monday" | week_starts_on = "Monday" | ||||||
|  |  | ||||||
| """That's all. The software will do the rest.""" | """That's all. The software will do the rest. You don't need to modify anything below this.""" | ||||||
|  |  | ||||||
| import epd7in5 | import epd7in5 | ||||||
| from PIL import Image, ImageDraw, ImageFont, ImageOps #image operations | from PIL import Image, ImageDraw, ImageFont, ImageOps #image operations | ||||||
| @@ -99,7 +99,6 @@ def main(): | |||||||
|         hour = int(time.strftime("%-H")) |         hour = int(time.strftime("%-H")) | ||||||
|          |          | ||||||
|         for i in range(1): |         for i in range(1): | ||||||
|             epd.init() |  | ||||||
|             if hour is 0: |             if hour is 0: | ||||||
|                 calibration() |                 calibration() | ||||||
|             if hour is 12: |             if hour is 12: | ||||||
| @@ -107,6 +106,7 @@ def main(): | |||||||
|             if hour is 18: |             if hour is 18: | ||||||
|                 calibration() |                 calibration() | ||||||
|  |  | ||||||
|  |             epd.init() | ||||||
|             image = Image.new('1', (EPD_WIDTH, EPD_HEIGHT), 255) |             image = Image.new('1', (EPD_WIDTH, EPD_HEIGHT), 255) | ||||||
|             draw = (ImageDraw.Draw(image)).bitmap |             draw = (ImageDraw.Draw(image)).bitmap | ||||||
|              |              | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user