You are reading a single comment by @fanoush and its replies.
Click here to read the full conversation.
-
Everything is shifted over to the left. so to make the text be lined up I have to start it as if it's 30 pixels to the RIGHT.What value could be causing this?
It is this line https://github.com/bocajs/NodeBotDays/blob/master/Espruino/ssd1306.js#L54 you need to start and end it on right column, e.g. 31,95
Thank you @MaBe
That gave me the values I was looking for. I knew that all that needed to change the values of the initCmds variable from the original 1306 module http://www.espruino.com/modules/SSD1306.js
There was also the initCmds[15] change when initializing that I needed to update. My new driver can be found at: https://github.com/bocajs/NodeBotDays/blob/master/Espruino/ssd1306.js
The working code from: https://github.com/bocajs/NodeBotDays/blob/master/Espruino/oled.js
BUT...
As you can see from the code. I did NOT change the width. I left it at 128. INSTEAD of 64.
Everything is shifted over to the left. so to make the text be lined up I have to start it as if it's 30 pixels to the RIGHT.
What value could be causing this?