sample

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 9 Imported by: 0

README

TinyGo examples

wioterminal sample

TinyGo example of wioterminal.
https://github.com/sago35/tinygo-examples/tree/master/wioterminal/sample

Build

tinygo flash -target wioterminal -size short github.com/sago35/tinygo-examples/wioterminal/sample

or

tinygo build -o app.uf2 -target wioterminal -size short github.com/sago35/tinygo-examples/wioterminal/sample

or if you don't want to build it, use the uf2 file.

Environment

$ tinygo version
tinygo version 0.14.0-dev linux/amd64 (using go version go1.14.4 and LLVM version 10.0.1)

In this example, I used the following.

  • Wio Terminal
    • LCD Screen : ILI9341 320 x 240
    • Accelerometer : LIS3DHTR
    • LED
      • machine.LED
    • Infrared Emitter
      • machine.WIO_IR
    • Operation interface
      • machine.WIO_KEY_A
      • machine.WIO_KEY_B
      • machine.WIO_KEY_C
      • machine.WIO_5S_UP
      • machine.WIO_5S_LEFT
      • machine.WIO_5S_RIGHT
      • machine.WIO_5S_DOWN
      • machine.WIO_5S_PRESS
    • Light Sensor
      • machine.WIO_LIGHT
    • Speaker
      • machine.WIO_BUZZER
    • Microphone
      • machine.WIO_MIC

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL