mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
feat(ssd1306): add getter method to the current buffer
This commit is contained in:
committed by
Ron Evans
parent
0ea72e7f1e
commit
7133c2e9db
@@ -233,6 +233,11 @@ func (d *Device) SetBuffer(buffer []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetBuffer returns the whole buffer
|
||||
func (d *Device) GetBuffer() []byte {
|
||||
return d.buffer
|
||||
}
|
||||
|
||||
// Command sends a command to the display
|
||||
func (d *Device) Command(command uint8) {
|
||||
d.bus.tx([]byte{command}, true)
|
||||
|
||||
Reference in New Issue
Block a user