Mercurial > code > home > repos > front-door-display
comparison lcd_simulator.py @ 8:47795c3121f1
bufferless updates! mqtt message is sent over SPI and everything works
author | drewp@bigasterisk.com |
---|---|
date | Mon, 11 Mar 2024 01:37:57 -0700 |
parents | d97a5930db7e |
children |
comparison
equal
deleted
inserted
replaced
7:b46679798c51 | 8:47795c3121f1 |
---|---|
2 import struct | 2 import struct |
3 | 3 |
4 import aiomqtt | 4 import aiomqtt |
5 import pygame | 5 import pygame |
6 | 6 |
7 screen = pygame.display.set_mode((320, 320)) | 7 screen = pygame.display.set_mode((320, 480)) |
8 clock = pygame.time.Clock() | 8 clock = pygame.time.Clock() |
9 | 9 |
10 | 10 |
11 async def on_message(client): | 11 async def on_message(client): |
12 await client.subscribe('display/squib/updates') | 12 await client.subscribe('display/squib/updates') |