Ixox Posted March 26, 2016 Report Share Posted March 26, 2016 (edited) Hi, I worked a little to get my OLED display working with the SID firmware. It didn't work with the out of the box MIOS driver, my oled remained totally black. Here is the OLED i have. It's now working wotj the following modifications. What must be done is to enable Custom LCD in main.inc USER_Init function. ;; CUSTOM LCD movlw 0x07 call MIOS_LCD_TypeSet Then replace app_lcd.inc by the one attached here in "midibox_sid_v2_044/src". It's based on the file found here with some init sequence and timing modifications. Best, Xavier app_lcd.inc app_lcd.inc Edited March 26, 2016 by Ixox Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted March 26, 2016 Report Share Posted March 26, 2016 Hi Ixox, great you got it working and that the old post was maybe of some help! I've still not fully understood what causes the incompatibility - i need the exact code as posted for the 4x20 VFDs, but found it only out through trial and error - it would be so nice to have a general solution working with the standard CLCDs, OLEDs and VFDs :-). Did you get any more insights when hacking your driver? Many greets! Peter Quote Link to comment Share on other sites More sharing options...
Ixox Posted March 26, 2016 Author Report Share Posted March 26, 2016 (edited) Yes thanks for you old post. Very usefull :) I'm not sure the MIOS clcd driver initializes perfectly the 4 bits mod. http://svnmios.midibox.org/filedetails.php?repname=svn.mios&path=%2Ftrunk%2Fmios%2Fmios_clcd.inc Look at page 46 of the HD44780 spec :https://www.sparkfun.com/datasheets/LCD/HD44780.pdf The app_lcd.inc i attached follows it more strictly. Also i think the clear() commands should have a wait of 2ms. It's not very clear in the spec as the 1.52ms is mentioned for the "return home" function, but that was a bloker for my OLED to work, and it's what LiquidCrystal (HD44700 famous library) does. Best, Xavier Edited March 26, 2016 by Ixox 1 Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted March 26, 2016 Report Share Posted March 26, 2016 Thanks for your insights and many greets! Bye, Peter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.