Documentation ¶
Overview ¶
Package ev3 provides ev3-specific and higher level access to the ev3dev control and sensor drivers.
Index ¶
Constants ¶
View Source
const ( // LCDWidth is the width of the LCD screen in pixels. LCDWidth = 178 // LCDHeight is the height of the LCD screen in pixels. LCDHeight = 128 // LCDStride is the width of the LCD screen memory in bytes. LCDStride = 712 )
Variables ¶
View Source
var ( GreenLeft = &ev3dev.LED{Name: led{color: "green", side: "left"}} GreenRight = &ev3dev.LED{Name: led{color: "green", side: "right"}} RedLeft = &ev3dev.LED{Name: led{color: "red", side: "left"}} RedRight = &ev3dev.LED{Name: led{color: "red", side: "right"}} )
LED handles for ev3 devices.
View Source
var LCD = ev3dev.NewFrameBuffer("/dev/fb0", fb.NewXRGBWith, LCDWidth, LCDHeight, LCDStride)
LCD is the draw image used draw directly to the ev3 LCD screen. Drawing operations are safe for concurrent use, but are not atomic beyond the pixel level. It must be initialized before use.
View Source
var Speaker = ev3dev.NewSpeaker("/dev/input/by-path/platform-snd-legoev3-event")
Speaker is a handle to the ev3 speaker. It must be initialized before use.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.