therealprof / display-interface

Rust crates providing a generic interface for display drivers and some default implementations (GPIO, SPI and I2C)
Apache License 2.0
73 stars 27 forks source link

New api #19

Open GrantM11235 opened 3 years ago

GrantM11235 commented 3 years ago

Pros

Cons

Todo

GrantM11235 commented 3 years ago

Update: I was able to port the top three display drivers (ssd1306, ili9341, and st7789) to this api without much difficulty

GrantM11235 commented 3 years ago

Sorry for the force-push, I wanted to make a small change to the api. The previous version of this PR had send_{iter,slice} methods that took a DataOrCommand enum but I realized that it is more ergonomic to just have send_{command,data}_{iter,slice} methods.