bobblehat

package module
v0.0.0-...-c2ff2fd Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: BSD-2-Clause Imports: 0 Imported by: 0

README

A Go library to support from Raspberry Pi 3 endpoints allocate in /dev/input/eventx

GoDoc Build Status

Documentation

Stick

The Sense HAT has a tiny joystick control and original this libraryu support that, but for our needs we take the package and now we integrate a complete alphabet like a sniffer input and this result help to us to made our labor, the original request was read an specific keyboard in specific dev/input/event0 for example.


input, err := stick.Open("/dev/input/event0")
if err != nil {
	log.Fatal(err)
}

for {
	select {
	case e := <-input.Events:
		switch e.Code {
		case stick.Enter:
			fmt.Println("ENTER")
		case stick.Tab:
			fmt.Println("[     TAB     ]")
		case stick.Uno:
			fmt.Println("1")
		case stick.DoubleDot:
			fmt.Println(":")
		case stick.Te:
			fmt.Println("t")
		}
	}
}

Gopher Gala 2016

Thanks original Team

Media

bobbleHAT in action:

Team:

License

The code is licensed under the Simplified BSD License. Copyright © 2016 bobbleHAT Authors.

The original Go gopher © 2009 Renée French. Used under Creative Commons Attribution 3.0 license.

Illustrations © 2016 Olga Shalakhina.

Things to Do
  • build a complete alphabet
  • add labels
  • build and do single things
  • build policy of flow

Documentation

Overview

Please see the README for usage.

Directories

Path Synopsis
examples
sense
screen
Package screen provides access to the Sense HAT's 8x8 LED matrix.
Package screen provides access to the Sense HAT's 8x8 LED matrix.
screen/color
Package color defines a 16-bit RGB565 color.
Package color defines a 16-bit RGB565 color.
screen/texture
Package texture loads and creates abitrary sized RGB565 images.
Package texture loads and creates abitrary sized RGB565 images.
stick
This does not works for Windows just for Linux
This does not works for Windows just for Linux

Jump to

Keyboard shortcuts

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