Skip to content

Instantly share code, notes, and snippets.

@narikakun
Created July 30, 2023 13:06
Show Gist options
  • Save narikakun/d7221d8b8d267210ac5eeda2edf78a0d to your computer and use it in GitHub Desktop.
Save narikakun/d7221d8b8d267210ac5eeda2edf78a0d to your computer and use it in GitHub Desktop.
Raspberry Pi Picoとnanoguilib
from nanoguilib.color_setup import ssd
from nanoguilib.nanogui import refresh
from nanoguilib.label import Label
from nanoguilib.writer import CWriter
import nanoguilib.freesans20 as freesans20
from nanoguilib.colors import *
CWriter.set_textpos(ssd, 0, 0)
wri = CWriter(ssd, freesans20, GREEN, BLACK, verbose=False)
wri.set_clip(True, True, False)
ssd.fill(0)
Label(wri, 2, 2, 'Hello World')
refresh(ssd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment