diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/config.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/include/config.h b/include/config.h index 926ddc9..b9e5d0f 100644 --- a/include/config.h +++ b/include/config.h @@ -1,12 +1,17 @@ #ifndef CONFIG_H #define CONFIG_H -#define TFT_CS 37 -#define TFT_DC 36 -#define TFT_RST 35 -#define TFT_MOSI 34 -#define TFT_SCLK 33 +// 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 @@ -18,4 +23,15 @@ #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 |