summaryrefslogtreecommitdiff
path: root/include/config.h
blob: b9e5d0fc6a7d98bc4830d0a6e794d4f65d456931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#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