Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

MicroPython • Re: Poker shotclock

$
0
0
Did some more investigation and got this running:
20250320_232538.jpg
Font almost 64 pixel high.
The procedure is
- edit an image 64x64 pixel width; place large chars in this image
- export the image to an image file
- write a small program exporting the black pixel as coordinates [x, y] to a py module file. Pillow is a good tool for this.

Code:

# converted from a png to hold pixelpixel_1 = [    [15,48],    [15,49],    [15,50],    [15,51],    [15,52],    [15,53],    ... just a sample
- import this file in your main.py on pico (takes prox 8 sec)
- write the pixel to framebuffer (prox 100ms)

Statistics: Posted by ghp — Thu Mar 20, 2025 10:37 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles