/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Inverted display on Primer1 with CircleOS 3.7

Username:     
Password:     
             

Forum
  • Index
  •  » circleOS
  •  » Inverted display on Primer1 with CircleOS 3.7

# 1   2009-06-27 19:32:03 Inverted display on Primer1 with CircleOS 3.7

Toley
New member
Registered: 2008-11-30
Posts: 4

Inverted display on Primer1 with CircleOS 3.7

I have upgrade to circleOS 3.7 on my Primer1. When I run in Debug mode, the display is inverted. See the above image. Is it normal ? Is there a solution for this issue ? Thank you for any help.http://www.ptp-images.com/mini/rczhre1fa9.jpg

Offline

 

# 2   2009-06-28 08:57:34 Inverted display on Primer1 with CircleOS 3.7

repzak
Member
Registered: 2008-03-05
Posts: 170

Re: Inverted display on Primer1 with CircleOS 3.7

Hej,

Long time ago i gave this solution:

In the LCD.C:

    static void LCD_7637_Controller( void )
        {
        extern void starting_delay ( long unsigned  );

        /** Apply hardware reset **/
        LCD_CtrlLinesWrite( GPIOx_CTRL_LCD, CtrlPin_RST, Bit_SET );    /* RST = 1  */
        LCD_CtrlLinesWrite( GPIOx_CTRL_LCD, CtrlPin_RST, Bit_RESET );  /* RST = 0  */
        starting_delay( 0x3000 ); // Changed from 0x500

        LCD_CtrlLinesWrite( GPIOx_CTRL_LCD, CtrlPin_RST, Bit_SET );    /* RST = 1  */
        starting_delay( 0x3000 ); // Changed from 0x500

Then it can run witout the delay in main:
    /* The LCD monitor is not always properly initialized:
    the starting delay allows to wait for a longer power up.                */
    #ifdef PRIMER2
    delayms(100);
    #else
    starting_delay( 100 ); // KJ - Changed from 0x10000
    #endif

But it seems not to be integrated into the circle os, you can change it an compile the circle os, and give feedback here if it works

Kasper

Offline

 

  • Index
  •  » circleOS
  •  » Inverted display on Primer1 with CircleOS 3.7

Board footer