Using the KY-040 Encoder to Control a TFT Display Using the TFT_eSPI Library

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ • 5

  • @thenextproblem8001
    @thenextproblem8001 8 місяців тому +1

    Hi man, thanks for another great tutorial!
    Do you also know is there any way to display image send over serial communication raspberry to esp/tft?

    • @ForceTronics
      @ForceTronics  8 місяців тому

      Glad you enjoyed the video. Any file is just a collection of digital bits formatted a certain to create a certain type of file, such as a CSV or PNG file, so you can certainly read a file, transfer it over a digital communication link, and reconstruct it in memory on the other side. This is not something I have done so I don't have a recipe for you. But you probably want to look into the file structure of an image and look at existing software libraries that handle files or file systems. For instance Arduino has the "SD" library that allows you to write and read files over SPI communication to an SD card (library reference: www.arduino.cc/reference/en/libraries/sd/)

    • @thenextproblem8001
      @thenextproblem8001 8 місяців тому

      @@ForceTronics yes i know SD library but i need raspberry to write it and esp32 to read it. This is where i stucked 😐

    • @ForceTronics
      @ForceTronics  8 місяців тому

      @@thenextproblem8001 The point of me mentioning the SD library or a similar file handling library was you could study the code from a library that handles files over digital communication and possibly leverage and modify that code to fit your need.

    • @thenextproblem8001
      @thenextproblem8001 8 місяців тому

      @@ForceTronics so i need to send the data over serial from raspberry to ESP. ESP reads it and save it to SD. Then i will call it in the function right?