Makerfabs / Project_Touch-Screen-Camera

103 stars 26 forks source link

Backlight Control #8

Open fvanroie opened 3 years ago

fvanroie commented 3 years ago

Does the board have a way to control the backlight brightness via GPIO?

I see in the schematic: image

Do I need to solder TXD to LCD_BCK on the board?

Makerfabs commented 2 years ago

@fvanroie Yes, as you can see from the schematic(https://github.com/Makerfabs/Project_Touch-Screen-Camera/tree/master/hardware/ ) , all the pins are connected to camera/LCD/SD card, there only TXD/RXD left. If you want to control the backlight, solder R31(0R,0603) resistance on the board and set TXD as GPIO1 for PWM output(You can't see the uart debug message any more). Generally speaking, if you had finished your code after a lot of testing. The released firmware didn't need debug message any more, so you can set TXD pin as PWM output pin to control backlight.

FrancisGut commented 2 years ago

Hello, I just soldered the R31 resistance and I want to control the tft brightness in Arduino but I dont find the way to do it. Have you some comments about it, please? Thanks.

FrancisGut commented 2 years ago

Hello, the problem is solved. Sorry I have setted the pin 35 as TXD but is the GPIO1, so the pin to write the analog values is the 1. Thanks.

mmccool commented 2 years ago

This is great to know. I wanted to use this board with openHASP but the lack of backlight control is annoying for a home control panel (I want the panel to turn off/down at night and based on a PIR sensor). I don't care about TX so... and I guess technically I don't even need a resistor, I can just bridge the two pads with a blob of solder. But now I need to hack the openHASP code to understand it needs to use GPIO1 :)

I've created an issue over under openHASP about supporting this in their software.