Skip to content

Commit 4156cfe

Browse files
committed
fixed set_url function
added post_frame_raw
1 parent f5d82e5 commit 4156cfe

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fluepdot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Mode(Enum):
3737
fonts: Optional[List[str]] = None
3838

3939
def set_url(url: str):
40+
global baseURL
4041
baseURL = url
4142

4243
def post_time() -> None:
@@ -77,6 +78,9 @@ def get_mode() -> Mode:
7778
def post_text(text: str, x: int = 0, y: int = 0, font: str = "DejaVuSans12") -> Response:
7879
return _post(textURL, get={"x": x, "y": y, "font": font}, post=text)
7980

81+
def post_frame_raw(frame: str) -> Response:
82+
return _post(frameURL, post=data)
83+
8084
def post_frame(frame: List[List[bool]]) -> Response:
8185
data: List(List(str)) = [[" "]*width for _ in range(height)]
8286
for x, l in frame:

0 commit comments

Comments
 (0)