fixing formatting and basic instructions
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
# Pi Calendar Sign
|
# Pi Calendar Sign
|
||||||
|
|
||||||
python3 -m venv ./venv
|
python3 -m venv ./venv
|
||||||
|
pip install -r requirements.txt
|
||||||
|
python3 pi-calendar-sign.py
|
||||||
|
|||||||
+4
-5
@@ -1,10 +1,8 @@
|
|||||||
|
|
||||||
import board
|
|
||||||
import busio
|
|
||||||
import adafruit_character_lcd.character_lcd_rgb_i2c as character_lcd
|
|
||||||
|
|
||||||
from datetime import datetime, time
|
from datetime import datetime, time
|
||||||
|
|
||||||
|
import adafruit_character_lcd.character_lcd_rgb_i2c as character_lcd
|
||||||
|
import board
|
||||||
|
import busio
|
||||||
from pytz import timezone
|
from pytz import timezone
|
||||||
|
|
||||||
from calendar_grabber import CalGrab
|
from calendar_grabber import CalGrab
|
||||||
@@ -32,6 +30,7 @@ def is_event_active(events, now):
|
|||||||
def is_work_time(now):
|
def is_work_time(now):
|
||||||
return now < WORK_STOP and now > WORK_START
|
return now < WORK_STOP and now > WORK_START
|
||||||
|
|
||||||
|
|
||||||
def update_display(color, text, cursor=False, blink=False):
|
def update_display(color, text, cursor=False, blink=False):
|
||||||
print(text)
|
print(text)
|
||||||
lcd.color = color
|
lcd.color = color
|
||||||
|
|||||||
Reference in New Issue
Block a user