Files
cardboy/Firmware/main/include/config.hpp
2025-03-02 23:33:37 +01:00

24 lines
422 B
C++

#ifndef CB_CONFIG_HPP
#define CB_CONFIG_HPP
#include "hal/spi_types.h"
#include "soc/gpio_num.h"
#define I2C_SCL GPIO_NUM_8
#define I2C_SDA GPIO_NUM_9
#define SPI_MOSI GPIO_NUM_5
#define SPI_MISO GPIO_NUM_0
#define SPI_SCK GPIO_NUM_4
#define SPI_DISP_CS GPIO_NUM_11
#define SPI_BUS SPI2_HOST
#define DISP_WIDTH 400
#define DISP_HEIGHT 240
#define PWR_INT GPIO_NUM_10
#define PWR_KILL GPIO_NUM_12
#endif