OMOTE/Platformio/hardware/ESP32/hardware_general_hal_esp32.cpp

17 lines
391 B
C++
Raw Normal View History

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);
// this is power for the TFT IC
2024-03-10 14:27:46 -04:00
pinMode(LCD_EN_GPIO, OUTPUT);
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
}