GithubHelp home page GithubHelp logo

ili9341 driver backlight about lv_port_esp32 HOT 5 CLOSED

lvgl avatar lvgl commented on June 11, 2024
ili9341 driver backlight

from lv_port_esp32.

Comments (5)

kisvegabor avatar kisvegabor commented on June 11, 2024

Hi,

It should be specific to the display. Probably your display needs '0' on the backlight pin to enable it.

from lv_port_esp32.

C47D avatar C47D commented on June 11, 2024

Hi,

I'm Carlos at the forum and found the same issue [1], maybe we can add some options so the users can define it's board inside a component.mk on the drv directory like so:

// Uncomment the line with your board:
CFLAGS+=-DESP32_BOARD=ESP32_WROVER_KIT
//CFLAGS+=-DESP32_BOARD=ESP32_30GPIO_KIT

This will make the following code set the correct level of the BCLK pin on the user board:

#if (ESP32_BOARD==ESP32_WROVER_KIT)
gpio_set_level(ILI9341_BCKL, 0)
#else // Other boards
gpio_set_level(ILI9341_BCKL, 1)
#endif

This can also help assign the right pins on this board or any board with hardwired LCDs.

What do you think?

[1] Lvgl in ESP-WROVER-KIT v4.1

from lv_port_esp32.

kisvegabor avatar kisvegabor commented on June 11, 2024

Hi Carlos,

Sounds good!
If there is no obsctacle we can use the Wrover Kit's pins as default. On Wroom32 modules, we can use any pins so we can be compatible with the Wroomkit by default.
Maybe the TP's SPI could be an issue because I saw that you need to use the SPI in half-duplex mode to achieve 40 MHz.

from lv_port_esp32.

C47D avatar C47D commented on June 11, 2024

The Wrover kit doesn't have a touch screen, it's just the TFT display, I got the code ready for a pull request but I'm waiting for my other PR to get merged. The TFT on the Wrover kit is 340x240, where should I update the code for this?

from lv_port_esp32.

kisvegabor avatar kisvegabor commented on June 11, 2024

The Wrover kit doesn't have a touch screen, it's just the TFT display,

Great, then it won't be an issue.

I'm waiting for my other PR to get merged.

Just merged 🙂

The TFT on the Wrover kit is 340x240, where should I update the code for this?

It should be changed in lv_conf.h (LV_HOR/VER_RES_MAX).

from lv_port_esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.