# HG changeset patch # User Ethan Zonca # Date 2014-09-11 22:22:54 # Node ID e9e09e0dbae7786197099f95fc8f5ddd6a7a5536 # Parent 31284ec8ec2cb86cbc060749fbabcd5e1da468fa Add actual SSR output support diff --git a/config.h b/config.h --- a/config.h +++ b/config.h @@ -15,5 +15,7 @@ #define SW_LEFT GPIOB, GPIO_Pin_5 #define SW_RIGHT GPIOB, GPIO_Pin_7 +#define SSR_PIN GPIOC, GPIO_Pin_13 + #endif diff --git a/main.c b/main.c --- a/main.c +++ b/main.c @@ -260,6 +260,7 @@ void process() ssd1306_DrawString(tempstr, 2, 57); GPIO_SetBits(LED_STAT); + GPIO_SetBits(SSR_PIN); last_ssr_on = ticks; } } @@ -268,6 +269,7 @@ void process() if(ticks - last_ssr_on > ssr_output) { GPIO_ResetBits(LED_STAT); + GPIO_ResetBits(SSR_PIN); } }