SSD1306 module #5519
Replies: 1 comment
-
Posted at 2016-07-19 by @gfwilliams I don't believe the module was copied from anywhere else (apart from perhaps the initialisation codes, but they have since been tweaked). I'm not sure the screen itself does much fancy stuff either - it's down to the graphics library in Espruino to do stuff before sending to the screen. Clear an area is just If you don't want to touch C, you can do some stuff in JavaScript by accessing the buffer - the only gotcha is that the pixels are stored in 8 pixel vertical strips. The VT100 terminal module already does some simple scrolling with Making Posted at 2016-07-19 by @allObjects With most of these displays scrolling (back) is a challenge: the display buffer memory is exactly the size of the display's pixels, which means that all is display memory to MC memory and back operations... doing so over serial and in js put's you to sleep. Furthermore, writing to an area that is not in display does not work (it would work if display buffer would be memory mapped). Of course, you can always just write to a memory buffer, but then you have to update the display... For a small Nokia 5110 BW LCD display (84x48) it is not that an issue - just 500 bytes - but for a serially connected 262K color display it get's really snaily... see Performance live in .mp4 for 20x20 px. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-07-19 by CrashingDutchman
Now that I have my SSD1306 working nicely I was looking for information if it is possible to use fancy stuff like scroll, clear an area instead of the whole display, etc...
I noticed that the module is based on code from Sam Sykes. Could it be that it is this: https://github.com/squix78/esp8266-oled-ssd1306? It seems to be do a lot more than currently is possible with the SSD1306 module.
Module code here: http://www.espruino.com/modules/SSD1306.js
Any pointers on how to extend the current functionality?
Beta Was this translation helpful? Give feedback.
All reactions