Home arrow Support arrow Forums

Luminary Micro Forums

Cat

Fresh Boarder

2006/11/07 20:41

OSRAMDisplayOff

Has anyone tried using OSRAMDisplayOff (not in conjuction with OSRAMClear) ? The following code snippet doesn't work for me on the LM3S811 EVAL board:

Code:

 // Set system clock SysCtlClockSet(SYSCTL_SYSDIV_10 SYSCTL_USE_PLL SYSCTL_OSC_MAIN |                SYSCTL_XTAL_6MHZ);      // Initialize OLED display OSRAMInit(true); OSRAMStringDraw("Hello, world!"00);      // Blink for (;;) {     unsigned int i;              OSRAMStringDraw("*"01);     OSRAMDisplayOn();     for (01000000i++);     OSRAMStringDraw(" "01);     OSRAMDisplayOff();     for (01000000i++); }



The StringDraws are to give visual feedback that the loop is actually working and that the delay loops provide a reasonable delay.

login or register to reply

klima

Junior Boarder

2006/11/30 03:22

Re:OSRAMDisplayOff

Well, it seems that the OSRAMDisplayOff() does not work for me either. I want to turn off the DC-DC converter, and it seems to keep running after issuing OSRAMDisplayOff()!

login or register to reply

LMI Brian

Admin

2006/12/05 06:40

Re:OSRAMDisplayOff

There was a slight ordering problem with the commands sent to the display. The DC-DC converter needed to be turned off after the display was turned off, not before as had been done. In the latest version of DriverLib, this has been fixed.

login or register to reply

klima

Junior Boarder

2006/12/10 05:56

Re:OSRAMDisplayOff

It works now, thank you!

login or register to reply