add a menu with bt pairing

This commit is contained in:
2026-03-12 23:31:58 +01:00
parent 8478ed761b
commit e80cea7bbf
8 changed files with 203 additions and 2 deletions

View File

@@ -10,3 +10,17 @@ def draw_long_press(draw, position):
x, y = position
for i in range(0, 5, 2):
draw.circle((x + i, y), 2, fill='black')
def draw_bluetooth_icon(draw, position, size=6, color='black'):
"""Draw a minimal Bluetooth icon (stylised B with two pointed flanges)."""
x, y = position
h = size # half-height of the centre line
w = size // 2 # half-width of the diamond cross
# Vertical spine
draw.line([(x, y - h), (x, y + h)], fill=color, width=1)
# Upper arm: spine top -> right tip -> spine midpoint
draw.line([(x, y - h), (x + w, y - h // 2)], fill=color, width=1)
draw.line([(x + w, y - h // 2), (x, y)], fill=color, width=1)
# Lower arm: spine midpoint -> right tip -> spine bottom
draw.line([(x, y), (x + w, y + h // 2)], fill=color, width=1)
draw.line([(x + w, y + h // 2), (x, y + h)], fill=color, width=1)