Jump to content

[ToDo] Possible bug with powerOn function in SSD1289 Driver


Recommended Posts

Posted

I found, on my board. that the "powerOn" control function would bring the display to like if it was in "powerSleep" but not "powerOff".

I checked the data sheet for the chip and it appears, according to my interpretation, that the powerOn function should be written as:

			case powerOn:
acquire_bus(g);
write_reg(g, 0x07, 0x0021);
write_reg(g, 0x00, 0x0001);
write_reg(g, 0x07, 0x0023);
write_reg(g, 0x10, 0x0000);
gfxSleepMilliseconds(30);
write_reg(g, 0x07, 0x0033);
release_bus(g);
break;

Instead of the following existing code:


case powerOn:
acquire_bus(g);
write_reg(g, 0x10, 0x0000); // leave sleep mode
write_reg(g, 0x00, 0x0001); // turn on oscillator
gfxSleepMicroseconds(5);
release_bus(g);
break;

Posted

Hello,

I just took out my hardware and tried it out with the current code. I couldn't find any issue, everything seems to be working as expected.

Can you please describe the problem that you are facing a bit more detailed - probably include a test case code snipped? Probably I'm not understanding your problem correctly.

~ Tectu

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...