2 3 123
11 20 28

: st7789

  1. #11

    14.06.2018
    -
    1,908
    , . IM ( ). CS, . , , .
    .


  2. #12
      vadim_d
    29.10.2006
    -
    16,814
    ozforester
    ?

  3. #13

    14.06.2018
    -
    1,908
    , , , . , , . . , , . (=
    .

  4. #14

    16.11.2009
    1,328
    ozforester,

  5.  veso74

  6. #15

    12.09.2006
    , , KN34PC
    2,191
    LZ2WSG
    ozforester, , , ( Arduino, ), , - . . , , , , , " " ...
    veso74; 01.08.2025 11:03.

  7. #16

    14.06.2018
    -
    1,908


    :
            st7789_rst_low();
            delay(1);
            st7789_rst_high();
            delay(120);
    
    
            spi_buffer[0] = 0x11; // exit sleep mode
            st7789_command( spi_buffer, 1 );
            delay(120);
    
    
            spi_buffer[0] = 0x29; // display on
            st7789_command( spi_buffer, 1 );
    
    
      while(1)
        {
            spi_buffer[0] = (rgb >> 8) ;
        spi_buffer[1] = (rgb && 0xff) ;
            st7789_data( spi_buffer, 2) ;
        }
    , ili9341 , , .
    .

  8. #17

    16.11.2009
    1,328
    ozforester

    CASET 0x2A // (Column Address Set)
    RASET 0x2B // (Row Address Set)
    RAMWR 0x2C // RAM (Memory Write)


    ST7789_SendCommand(S T7789_CASET); // X
    ST7789_SendData(x >> 8); //
    ST7789_SendData(x & 0xFF); //
    ST7789_SendData(widt h >> 8); //
    ST7789_SendData(widt h & 0xFF); //

    ST7789_SendCommand(S T7789_RASET); // Y
    ST7789_SendData(y >> 8); //
    ST7789_SendData(y & 0xFF); //
    ST7789_SendData(heig ht >> 8); //
    ST7789_SendData(heig ht & 0xFF); //

    , ILI


    //
    void ST7789_DrawPixel(uin t16_t x, uint16_t y, uint16_t color)
    {
    //
    if (x > CurrentWidth || y > CurrentHeight) {return; /* , */}

    //
    ST7789_SetRegion(x, y, x, y);

    //
    ST7789_SendCommand(S T7789_RAMWR);
    ST7789_SendData(colo r >> 8); //
    ST7789_SendData(colo r & 0xFF); //
    }

  9.  veso74

  10. #18

    14.06.2018
    -
    1,908
    . ILI9341 . .
    :
      st7789_pos( x1, x2, y1, y2 );
      spi_buffer[0] = 0x2c; // ram write
      st7789_command( spi_buffer, 1 );
    .

  11. #19

    16.11.2009
    1,328
    SPI ?


  12. #20

    14.06.2018
    -
    1,908
    , ili9341 .
    (, , , , )
    ozforester; 01.08.2025 11:36.
    .

,

: 1 (: 0 , : 1)

  1. ST7920
    SoundMaster
    : 4
    : 02.04.2019, 00:50
  2. PSK31
    Altair
    : 21
    : 22.07.2011, 20:53
  3. UR5EPM
    : 8
    : 06.04.2011, 20:57
  4. : 3
    : 04.04.2011, 09:21
  5. : 4
    : 21.07.2006, 19:47

  •