- Notifications
You must be signed in to change notification settings - Fork3
A minimal terminal for TinyGo display devices. Supporting 256-color ANSI escape codes and also monochrome displays.
License
tinygo-org/tinyterm
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A minimal terminal for TinyGo displays. Supporting 256-color ANSI escape codes, as well as monochrome displays such as e-ink or OLED.
package mainimport ("fmt""time""tinygo.org/x/tinyfont/proggy""tinygo.org/x/tinyterm""tinygo.org/x/tinyterm/displays")var (font=&proggy.TinySZ8pt7b)funcmain() {display:=displays.Init()terminal:=tinyterm.NewTerminal(display)terminal.Configure(&tinyterm.Config{Font:font,FontHeight:10,FontOffset:6,UseSoftwareScroll:displays.NeedsSoftwareScroll(),})for {time.Sleep(time.Second)fmt.Fprintf(terminal,"\ntime: %d",time.Now().UnixNano())terminal.Display()}}
Most of the examples will work with any of the following hardware:
- Adafruit Clue (https://www.adafruit.com/clue)
- Badger2040 & Badger2040-W (https://shop.pimoroni.com/products/badger-2040)
- Gopher Badge (https://gopherbadge.com/)
- PyBadge (https://www.adafruit.com/product/4200)
- PyPortal (https://www.adafruit.com/product/4116)
- WioTerminal (https://wiki.seeedstudio.com/Wio-Terminal-Getting-Started/)
Displays basic text.
tinygo flash -target pyportal ./examples/basicDisplays ANSI colors.
tinygo flash -target pyportal ./examples/colorsConnects to an http server and displays the results. Runs on PyPortal and WioTerminal only, since it requires a connected WiFi coprocessor.
tinygo flash -target pyportal -ldflags="-X main.ssid=MYSSID -X main.pass=MYPASS" ./examples/httpclientAbout
A minimal terminal for TinyGo display devices. Supporting 256-color ANSI escape codes and also monochrome displays.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
