MabezDev / ssd1351

A Driver crate for the SSD1351, which drives 128x128 colour displays
16 stars 14 forks source link

Row & column commands not accepted #1

Closed MabezDev closed 6 years ago

MabezDev commented 6 years ago

It seems Row & column commands are not being accepted, this is probably due to the unlock oled command not being correct or working properly. This would also mean other commands are not going through.

MabezDev commented 6 years ago

This is further backed up by the datasheet, Display offset being 60 at reset, and our draw area starting from 60 from the bottom.

MabezDev commented 6 years ago

After looking at the datasheet The SSD1351 expects DC to be low for the command, then high for the command params. Shouldn't be too hard to implement.

MabezDev commented 6 years ago

Naive impl here to test

MabezDev commented 6 years ago

The naive implementation worked. It could and should be fixed in commands, to return the command and then the data.

MabezDev commented 6 years ago

Fixed with 5f8284603104e6669fe0ee2f537e28562226e207