mirror of
https://github.com/Death916/deathclock.git
synced 2026-04-10 03:04:40 -07:00
add radio module drom github and fix weather hot reloads
This commit is contained in:
parent
7d0a0cdfa6
commit
4ea3436128
5 changed files with 1174 additions and 773 deletions
|
|
@ -1,8 +1,10 @@
|
|||
#!/usr/bin/python3
|
||||
# connect to rda5807 chip and control it and display the current station
|
||||
|
||||
# TODO: reference rd library in readme
|
||||
import reflex as rx
|
||||
|
||||
# from utils.python_rd5807m.radio import Radio as Radio_lib
|
||||
|
||||
CURRENT_STATION = "90.9 FM"
|
||||
PLAYING = False
|
||||
|
||||
|
|
@ -31,8 +33,15 @@ class Radio(rx.Base):
|
|||
|
||||
|
||||
class Radio_Control:
|
||||
def __init__(self):
|
||||
pass
|
||||
def init_radio(self):
|
||||
self.radio = Radio_lib()
|
||||
self.radio.initialize()
|
||||
|
||||
def play_radio(self):
|
||||
pass
|
||||
|
||||
|
||||
## for testing chip
|
||||
# if __name__ == "__main__":
|
||||
# radio = Radio_Control()
|
||||
# radio.play_radio()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue