natevw / pi-spi

Simple RasPi SPI library (node.js)
93 stars 14 forks source link

OLED example? #25

Closed GeoffreyPlitt closed 6 years ago

GeoffreyPlitt commented 6 years ago

Any examples with an OLED screen?

natevw commented 6 years ago

Sorry, nothing available offhand.

Ages ago I added an LCD driver to another node.js framework (https://github.com/ecto/duino/pull/31) — that wasn't even SPI but my general approach would be about the same:

  1. find the datasheet for the screen you need to support, or the standards document for the generic protocol
  2. design and implement basic "driver" logic that talks with the hardware using lower-level driver libraries like this one/pi-pins/johnny-five/tessel/etc.
  3. write test and/or app code that exercises your new display driver
  4. test, troubleshoot, test, troubleshoot, … :-)

Hope this helps, otherwise feel free to re-open (or contact me re. custom work).