Skip to content

read or toggle pixel in bufferedMode? #192

@thomas725

Description

@thomas725
  • Version of ssd1306 in use (if applicable): 0.8.1
  • MCU/other hardware in use: ESP32
  • Display resolution and interface: I2C, 128x32

I found I can use this method to set a pixel in the buffer:
https://github.com/jamwaffles/ssd1306/blob/5c50f1158546e02e8ddc1ad3889eaf8d25112053/src/mode/buffered_graphics.rs#L161

But I would now like to toggle a pixel without having to add another buffer to remember what all the pixels previous state was, so I'd either need a toggle or a read method, but neither seems to exist.

I guess my description already hints onto the only solution: fork & add those functions myself? Or is there any easier way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions