0.0.3 • Published 10 months ago

devicescript-waveshare-pico-lcd v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

WaveShare Pico-LCD drivers for DeviceScript

Drivers for RPi Pico display hats by WaveShare.

Supported devices

PRs are welcome!

Pico-LCD-1.14

Pico-LCD-1.14

https://www.waveshare.com/pico-lcd-1.14.htm

Setup

This project is published on npm, which you can also add to your package.json dependencies list.

npm install --save devicescript-waveshare-pico-lcd

Usage

import { WaveSharePicoLCD114 } from "devicescript-waveshare-pico-lcd"

const board = new WaveSharePicoLCD114()

const gp = board.startGamepad()
const disp = await board.startDisplay()

for (let i = 1; i < 15; ++i)
    disp.image.print(`Hello world c=${i}`, 2, i * 10 - 8, i)
await disp.show()

gp.change.subscribe(btns => {
    if (btns & ds.GamepadButtons.Down) {
        // ...
    }
})
0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

11 months ago

0.0.0

11 months ago