Jump to content

Viacheslav

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Viacheslav

  1. As a novice programmer, it was hard for me to figure out how to write a driver. As a result, I managed to write a driver and my display came to life with new colors. Now I will take the time to put the driver code in order and implement additional functions. I would also like to share the driver for this display. What is the best way to do this?

    Thanks for the great graphics library!

    IMG_20190828_161338.jpg

  2. Hello!

    Hello! I want to write my display driver for uGFX
    My display on the microcontroller otm8009a is connected via a 16 bit parallel bus to stm32f407ve via FSMC.
    Using the cube, I generated the FSMC initialization code.
    I have addresses in the memory of the microcontroller:

    #define LCD_REG     0x60000000
    #define LCD_DATA    0x6007FFFE

    I wrote the initialization of the display controller and in the end I have a working functions like:

    void LCD_DrawPoint(uint16_t x, uint16_t y, uint16_t color)  //color in RGB565
    {
        LCD_SetWindows(x, y, x, y); 
        LCD_DATA = Color;
    }
    
    void LCD_Clear(uint16_t Color)
    {
        unsigned int i;
        uint32_t total_point = width * height;
        LCD_SetWindows(0, 0, width - 1, height - 1);
        for(i = 0; i < total_point; i++)
        {
            LCD_DATA = Color;
        }
    }

    Help me please understand how I should write a driver for uGFX.

×
×
  • Create New...