cewkomator/firmware/src/constants.h

36 lines
485 B
C

#pragma once
// --- debug config
#define DEBUG_I2C 0
// --- pinout
#define LED_PIN LED_BUILTIN
#define BUZZER_PIN 11
// rotary encoder
#define CLK_PIN 7
#define DT_PIN 6
#define SW_PIN 5
// --- LCD config
#define LCD_I2C_ADDR 0x27
#define LCD_COLS 16
#define LCD_ROWS 2
// --- Keyboard config
#define KBD_I2C_ADDR 0x21
// Used by keyboard and encoder switch
#define DEBOUNCE_MS 10
// --- Z axis motor
#define STEPPER_ENABLE 8
#define STEPPER_DIR 9
#define STEPPER_STEP 10