3. LILYGO T-Display S3

pinout

pinout

3.1. Enable Display

void setup() {
 pinMode(15, OUTPUT);
 digitalWrite(15, HIGH);
}

3.2. Brightness

const int ledPin = 38;  
const int freq = 5000;  
const int ledChannel = 0;  
const int resolution = 8;  

void setup() {
 ledcSetup(ledChannel, freq, resolution);  
 ledcAttachPin(ledPin, ledChannel);  
 ledcWrite(ledChannel, 25);  // 0-255
}

3.3. References