xlh1460 Posted April 24, 2014 Report Share Posted April 24, 2014 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; Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted April 25, 2014 Report Share Posted April 25, 2014 Thank you very much for reporting this bug. I'll take a loot at this tonight.~ Tectu Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted April 26, 2014 Report Share Posted April 26, 2014 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 Link to comment Share on other sites More sharing options...
xlh1460 Posted May 3, 2014 Author Report Share Posted May 3, 2014 if I call gdispSetPowerMode(powerOff), then call gdispSetPowerMode(powerOn), the display remains blank.I have attached the program that I was testing.main.zip Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted May 5, 2014 Report Share Posted May 5, 2014 I'll get back to this soon.~ Tectu Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now