diff options
| author | poek <maciek09874@gmail.com> | 2026-06-08 00:34:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-08 00:34:27 +0200 |
| commit | 0f42e7895afd0f1029488dd0b0613fe89194b8cb (patch) | |
| tree | 9403e109e12962bd6ad5dbf15f316d411d44aedc /include | |
| parent | 70dd357e2841bed77d37316833881bfb72cf60f0 (diff) | |
| parent | 60c65d9ac75c989deb4b797622c689381691831d (diff) | |
Merge pull request #1 from opekk/feat/temp-sensors
Diffstat (limited to 'include')
| -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 |