You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef CONFIG_H_INCLUDED
|
|
|
|
#define CONFIG_H_INCLUDED
|
|
|
|
|
|
|
|
// Encoder with button
|
|
|
|
#define NUM_ENCODER 2
|
|
|
|
#define ENC_L_PIN_A 3
|
|
|
|
#define ENC_L_PIN_B 2
|
|
|
|
#define BUT_L_PIN 4
|
|
|
|
#define INITIAL_ENC_L_VALUE 0
|
|
|
|
#define ENC_R_PIN_A 28
|
|
|
|
#define ENC_R_PIN_B 29
|
|
|
|
#define BUT_R_PIN 30
|
|
|
|
#define INITIAL_ENC_R_VALUE 0
|
|
|
|
#define BUT_DEBOUNCE_MS 20
|
|
|
|
#define LONG_BUTTON_PRESS 500
|
|
|
|
|
|
|
|
// LCD display (I2C)
|
|
|
|
// [I2C] SCL: Pin 19, SDA: Pin 18 (https://www.pjrc.com/teensy/td_libs_Wire.html)
|
|
|
|
#define LCD_I2C_ADDRESS 0x27
|
|
|
|
#define LCD_CHARS 16
|
|
|
|
#define LCD_LINES 2
|
|
|
|
|
|
|
|
#define CONTROL_RATE_MS 50
|
|
|
|
|
|
|
|
#endif
|