diff options
Diffstat (limited to 'include/config.h')
| -rw-r--r-- | include/config.h | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/include/config.h b/include/config.h index 3cd6bca..b9e5d0f 100644 --- a/include/config.h +++ b/include/config.h @@ -1,20 +1,37 @@ #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 +#define BUTTON_EXIT 9 +#define BUTTON_CONFIRM BUTTON_SELECT #define SERVO_PIN 13 #define INTERNAL_BUS 17 -#define CURRENT_BUS 16 +#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 BUTTON_UP 3 -#define BUTTON_DOWN 5 -#define BUTTON_CONFIRM 7 -#define BUTTON_EXIT 9 +#define DEFAULT_MIN_INTERNAL_C 50.5F +#define DEFAULT_MAX_EXTERNAL_C 90.0F +#define DEFAULT_HYSTERESIS_C 5.0F #endif |