xlh1460 Posted April 24, 2014 Report 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;
Joel Bodenmann Posted April 25, 2014 Report Posted April 25, 2014 Thank you very much for reporting this bug. I'll take a loot at this tonight.~ Tectu
Joel Bodenmann Posted April 26, 2014 Report 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
xlh1460 Posted May 3, 2014 Author Report 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
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