Files @ 9294a623e8e5
Branch filter:

Location: therm/config.h

Ethan Zonca
Added support for both heaters and coolers as well as thermostatic control
#ifndef CONFIG_H
#define CONFIG_H

// Temperature sensor type
#define MAX31855_TC_SENSOR
//#define MAX31865_RTD_SENSOR


// Virtual serial port transmit rate
#define VCP_TX_FREQ 1000

// Solid-state relay maximum on-time
#define SSR_PERIOD 200

// Interval of PID calculations
#define PID_PERIOD 120



// Pin settings
#define LED_POWER GPIOF,GPIO_PIN_0
#define MAX_CS GPIOA,GPIO_PIN_15

#define SW_BTN  GPIOB, GPIO_PIN_4
#define SW_UP   GPIOB, GPIO_PIN_7
#define SW_DOWN GPIOB, GPIO_PIN_3
#define SW_LEFT GPIOB, GPIO_PIN_5
#define SW_RIGHT GPIOB, GPIO_PIN_6

#define SSR_PIN GPIOA, GPIO_PIN_1

// Visual niceness
#define hal_init() HAL_Init()

// Add bootloader option to top of idle screen menu
#define BOOTLOADER_SHORTCUT


#define DEFAULT_BOOT_TO_BREW 0
#define DEFAULT_TEMP_UNITS TEMP_UNITS_FAHRENHEIT
#define DEFAULT_WINDUP_GUARD 10
#define DEFAULT_K_P 10
#define DEFAULT_K_I 1
#define DEFAULT_K_D 1
#define DEFAULT_TEMP_OFFSET 0
#define DEFAULT_IGNORE_ERROR 0
#define DEFAULT_SETPOINT_BREW 70
#define DEFAULT_SETPOINT_STEAM 70


#endif

// vim:softtabstop=4 shiftwidth=4 expandtab