feat(ssd1306): add getter method to the current buffer

This commit is contained in:
Alexandre Jomin
2022-09-14 16:04:56 +02:00
committed by Ron Evans
parent 0ea72e7f1e
commit 7133c2e9db
+5
View File
@@ -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)