I've added a 2.42" I2C OLED display to my Focuser Pro2 (search E-Bay for "2.42 oled i2c", make sure to get the I2C interface not the SPI). I am using the "Focuserv256_DRV8825_HW203_OLED_RE_F" firmware.
I made a couple of changes to fix a problem and improve display quality.
If "lcdupdateonmove" is enabled, when the number of displayed digits decrease with either of the variables "currentPosition" or "targetPosition" (i.e. 4 digits to 3 digits, 1000 to 999) the least significant digit from the larger number is left as an artifact on the display (going from 1000 to 999 will display 9990). When “displaylcd()” runs it does clear the issue, but the displayed number is incorrect for a short time.
Starting at line 1514 I’ve changed my firmware to this:
This works with any display that uses the SSD1306 (or SSD1309) driver chip when in ASCII mode, which would be any OLED display that works with the various Focuser Pro2 OLED firmwares.
So yes, it will work!
Mike W
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello All,
I've added a 2.42" I2C OLED display to my Focuser Pro2 (search E-Bay for "2.42 oled i2c", make sure to get the I2C interface not the SPI). I am using the "Focuserv256_DRV8825_HW203_OLED_RE_F" firmware.
I made a couple of changes to fix a problem and improve display quality.
If "lcdupdateonmove" is enabled, when the number of displayed digits decrease with either of the variables "currentPosition" or "targetPosition" (i.e. 4 digits to 3 digits, 1000 to 999) the least significant digit from the larger number is left as an artifact on the display (going from 1000 to 999 will display 9990). When “displaylcd()” runs it does clear the issue, but the displayed number is incorrect for a short time.
Starting at line 1514 I’ve changed my firmware to this:
Using “clearToEOL” removes the artifact.
I’ve used a similar strategy to eliminate screen flicker, caused by clearing the screen and then re-writing it, when running “displaylcd()”.
I made the following changes started at line 1065:
I hope this has some value and thanks for all the hard work!
Hi Mike,
Can these changes related to the screen flicker be used with the small OLED screen?
Miloš
Miloš,
This works with any display that uses the SSD1306 (or SSD1309) driver chip when in ASCII mode, which would be any OLED display that works with the various Focuser Pro2 OLED firmwares.
So yes, it will work!
Mike W
Hi Mike
Are you happy for me to weave your code changes into the next release?
Regards
Robert
Robert,
Yes, please do!
I appreciate all your hard work on this project, it's been fun to build and use!
Regards,
Mike W
That's great, looking forward to the new version Robert! Thank you so much Mike.