Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scootpl/uprint
uPrint (microPrint) is a simple TinyGo library to print text on OLED display. Drivers implementing 'drivers.Displayer' are supported. Tested on Raspberry Pi Pico and ssd1306.
https://github.com/scootpl/uprint
microcontroller oled oled-display-ssd1306 pico raspberry-pi tinygo
Last synced: 17 days ago
JSON representation
uPrint (microPrint) is a simple TinyGo library to print text on OLED display. Drivers implementing 'drivers.Displayer' are supported. Tested on Raspberry Pi Pico and ssd1306.
- Host: GitHub
- URL: https://github.com/scootpl/uprint
- Owner: scootpl
- License: mit
- Created: 2023-02-25T01:58:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T00:15:35.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T03:15:05.672Z (about 2 months ago)
- Topics: microcontroller, oled, oled-display-ssd1306, pico, raspberry-pi, tinygo
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uPrint
uPrint (microPrint) is a simple TinyGo library to print text on OLED display. Drivers implementing 'drivers.Displayer' are supported. Tested on Raspberry Pi Pico and ssd1306.
## Example
```go
machine.SPI0.Configure(machine.SPIConfig{
Frequency: 10 * 1024 * 1024,
})time.Sleep(time.Second)
device := ssd1306.NewSPI(machine.SPI0, machine.Pin(17), machine.Pin(20), machine.Pin(16))
device.Configure(ssd1306.Config{})device.ClearDisplay()
p := uprint.New(&device, "font7x10")
p.Print("Hello!", 0, 0, color.RGBA{R: 0xff, G: 0xff, B: 0xff, A: 0xff})device.Display()
for {
time.Sleep(time.Second)
}
```---
fonts downloaded from: https://github.com/Nondzu/ssd1306_font