Skip to content

Advice/Guidance on bitmap manipulation in python/low-level driver #210

@DaveWK

Description

@DaveWK

Hi,

Thanks for putting this out; these are a neat little devices that seem to have some good potential.

I am interested in the "low-level" functionality of the sdk and was hoping you could give me some tips.

My impression based on the doc is that pushing the entire bitmap for a screen is a time intensive process, so the best approach is to push the "full" bitmap to the device only when the program starts, then after the "init" to only push updates to sections of the bitmap at a time for performance.

For that reason, I think the best approach would be to make a python class that maintains the full state of the bitmap, and have helper functions capable of making a diff between the current bitmap and the desired bitmap, and then being able to push only the updated portions to the device rather than the whole bitmap.

I was wondering if you/anyone was aware of any python libraries/packages capable of holding an entire bitmap in memory and producing a diff between two bitmaps? It seems like if I had this, then it would be trivial to make CRUD API's for exposing to other programs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions