Compare commits
No commits in common. "509f9f27a3db72de0e508f78529995d591aec380" and "66296df43304bfd538f7b792cf9edba2ce0b73af" have entirely different histories.
509f9f27a3
...
66296df433
2 changed files with 1 additions and 12 deletions
|
@ -17,6 +17,7 @@ def get_reader():
|
|||
def onTagSense(tag):
|
||||
id = int.from_bytes(tag.identifier, "big")
|
||||
response = requests.post(f"{url}tag_id", data={"id":id})
|
||||
print(response.json())
|
||||
try:
|
||||
if response.json()["mode"] == "balance" or response.json()["mode"] == "message":
|
||||
return True
|
||||
|
|
12
oled.py
12
oled.py
|
@ -1,12 +0,0 @@
|
|||
from luma.core.interface.serial import i2c, spi, pcf8574
|
||||
from luma.core.interface.parallel import bitbang_6800
|
||||
from luma.core.render import canvas
|
||||
from luma.oled.device import ssd1306, ssd1309, ssd1325, ssd1331, sh1106, sh1107, ws0010
|
||||
|
||||
serial = i2c(port=1, address=0x3C)
|
||||
|
||||
device = ssd1306(serial)
|
||||
|
||||
with canvas(device) as draw:
|
||||
draw.rectangle(device.bounding_box, outline="white", fill="black")
|
||||
draw.text((30, 40), "Hello World", fill="white")
|
Loading…
Reference in a new issue