#ifndef GOTEK_CONFIG_H #define GOTEK_CONFIG_H #define GOTEK_DEBUG 1 #define GOTEK_LED_ORANGE 39 #define GOTEK_LED_BLUE 40 #define GOTEK_LED_GREEN 41 #define GOTEK_SD_CS 16 #define GOTEK_MISO 13 #define GOTEK_MOSI 14 #define GOTEK_SCLK 15 #define GOTEK_SD_SEL 12 #define GOTEK_SELECT_Y 6 #define GOTEK_SELECT_X 7 #define GOTEK_BUTTON_RIGHT 8 #define GOTEK_BUTTON_LEFT 9 #define GOTEK_BUTTON_IO_0 0 #define GOTEK_STM_IO_1 3 #define GOTEK_STM_IO_2 2 #define GOTEK_STM_RST 4 //#define GOTEK_STM_BOOT 8 #define GOTEK_STM_POWER 21 //#define GOTEK_V_B0 7 #define GOTEK_I2C_SCL 11 #define GOTEK_I2C_SDA 10 //#define GOTEK_I2C_SCL2 40 //#define GOTEK_I2C_SDA2 39 #define GOTEK_SPI_CLOCK SD_SCK_MHZ(50) #define GOTEK_SD_CONFIG SdSpiConfig(SD_CS, DEDICATED_SPI, SPI_CLOCK ) #ifdef GOTEK_SDFAT2 #define SD_CONFIG SdSpiConfig(GOTEK_SD_CS, DEDICATED_SPI, GOTEK_SPI_CLOCK ) #endif #define NTP_TIMER_PERIOD pdMS_TO_TICKS( 1000 ) #define K_LEFT 1 #define K_RIGHT 2 #define K_SELECT 4 #define K_MENU 8 #define NTP_Update_Interval 3600000 // Webserver Infopage, Firmwareupdate #define WEB_SERVER_PORT 80 #define WEBDAV_SERVER_PORT 8080 #define HOSTNAME "SweFlops" // Serial port settings #define GOTEK_SERIAL_BAUD_RATE 115200 //Logging #define GOTEK_LOGGING_ENABLE_SERIAL #ifndef GOTEK_LOGGING_SERIAL_PORT #define GOTEK_LOGGING_SERIAL_PORT Serial #endif #define OSD_I2C_ADDRESS 0x10 #define LCD_I2C_ADDRESS2 0x20 typedef struct __attribute__((packed)) i2c_osd_info { uint8_t protocol_ver; uint8_t fw_major, fw_minor; uint8_t buttons; uint8_t buttons2; } t_osd_info ; #endif // GOTEK_CONFIG_H