Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ErrorScreenClosed means an attempt to communicate with a closed OLED screen
ErrorScreenClosed = oledError("Screen is closed")
)
Variables ¶
View Source
var SignalLevels int
SignalLevels holds the number of supported signal levels
Functions ¶
This section is empty.
Types ¶
type MockOpener ¶
type MockOpener struct { }
MockOpener allows to open a screen object that does not perform any real connection Can be used for testing
type Opener ¶
type Opener interface {
// contains filtered or unexported methods
}
Opener opens a connection to the screen
type Screen ¶
type Screen interface { // Print displays a string in the specified position of the screen Print(line int, offset int, message string) error // DisplaySignalLevel displays signal level icon in the specified position of the screen DisplaySignalLevel(line int, offset int, level int) error // DisplayImageFile loads image from the specified file and displays it on the screen DisplayImageFile(filepath string) error // DisplayImage loads image from the provided reader and displays it on the screen DisplayImage(reader io.Reader) error // Clear erases screen RAM contents Clear() error // Close releases all the resources allocated by this instance of Screen Close() error }
Screen contains resources required to work with the OLED screen
Click to show internal directories.
Click to hide internal directories.