2024-03-10 14:27:46 -04:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <Wire.h>
|
|
|
|
#include "tft_hal_esp32.h"
|
|
|
|
|
|
|
|
void init_hardware_general_HAL(void) {
|
|
|
|
// Make sure ESP32 is running at full speed
|
|
|
|
setCpuFrequencyMhz(240);
|
|
|
|
|
2024-03-15 16:35:13 -04:00
|
|
|
// this is power for the TFT IC
|
2024-03-10 14:27:46 -04:00
|
|
|
pinMode(LCD_EN_GPIO, OUTPUT);
|
2024-03-15 16:35:13 -04:00
|
|
|
digitalWrite(LCD_EN_GPIO, HIGH);
|
|
|
|
// this is power for backlight LEDs
|
|
|
|
pinMode(LCD_BL_GPIO, OUTPUT);
|
|
|
|
digitalWrite(LCD_BL_GPIO, HIGH);
|
2024-03-10 14:27:46 -04:00
|
|
|
|
|
|
|
}
|