#ifndef CONFIG_H #define CONFIG_H // ST7735S 128x160 #define TFT_CS 37 #define TFT_DC 36 #define TFT_RST 35 #define TFT_MOSI 34 #define TFT_SCLK 33 #define TFT_BL 38 #define TFT_BL_ON HIGH #define TFT_ROTATION 0 // Przyciski zwieraja wejscie do GND (uzywany jest INPUT_PULLUP). #define BUTTON_UP 3 #define BUTTON_DOWN 5 #define BUTTON_SELECT 7 #define BUTTON_EXIT 9 #define BUTTON_CONFIRM BUTTON_SELECT #define SERVO_PIN 13 #define INTERNAL_BUS 17 #define EXTERNAL_BUS 16 // Kalibracja DS3240 270 stopni. #define SERVO_MIN_US 500 #define SERVO_MAX_US 2500 #define SENSOR_INTERVAL_MS 5000UL #define BUTTON_DEBOUNCE_MS 35UL #define DEFAULT_MIN_INTERNAL_C 50.5F #define DEFAULT_MAX_EXTERNAL_C 90.0F #define DEFAULT_HYSTERESIS_C 5.0F #endif