Jump to content

Recommended Posts

Posted (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 by Ixox
Posted

Hi Ixox,

great you got it working and that the old post was maybe of some help! :cheers:

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

 

Posted (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 by Ixox
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...