-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fd926e
commit d86f2bb
Showing
4 changed files
with
112 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
KFLG | ||
-2 | ||
KSEZ | ||
1 | ||
60 | ||
0 | ||
2 | ||
0 | ||
0 | ||
1 | ||
1 | ||
0 | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from metar_layouts import * | ||
from metar_routines import * | ||
import time | ||
|
||
# epd7in5b_V2 = 3-color 7 by 5 display. Change this based on the display used. | ||
# find 'epd = epd7in5b_V2.EPD()' towards bottom and change also if needed. | ||
# These are located in the directory 'waveshare_epd' | ||
from waveshare_epd import epd7in5b_V2 | ||
|
||
|
||
if __name__ == "__main__": | ||
epd = epd7in5b_V2.EPD() # Instantiate instance for display. | ||
epd.init() | ||
epd.Clear() | ||
display = Display() # pass to routines | ||
|
||
disp_ip(display, get_ip_address()) | ||
|
||
# Print to e-Paper - This is setup to display on 7x5 3 color waveshare panel. epd7in5b_V2 | ||
print("Updating screen...") | ||
try: | ||
epd.init() | ||
time.sleep(1) | ||
print("Printing METAR Data to E-Paper") | ||
epd.display(epd.getbuffer(display.im_black), epd.getbuffer(display.im_red)) | ||
print("Done") | ||
time.sleep(2) | ||
|
||
except Exception as e: | ||
print("Printing error", e) | ||
|
||
print("------------") | ||
print("Done") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters