From c35c80ce246c7321246a632afe799390340d7422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 23 Feb 2020 21:06:42 +0100 Subject: [PATCH] Add files for user interface via rotaryencoder/button and LCD --- stm-firmware/Makefile | 4 +++- stm-firmware/button.c | 21 ++++++++++++++++ .../include/reflow-controller/button.h | 24 +++++++++++++++++++ .../include/reflow-controller/ui/lcd.h | 24 +++++++++++++++++++ .../include/reflow-controller/ui/menu.h | 24 +++++++++++++++++++ stm-firmware/ui/lcd.c | 21 ++++++++++++++++ stm-firmware/ui/menu.c | 21 ++++++++++++++++ 7 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 stm-firmware/button.c create mode 100644 stm-firmware/include/reflow-controller/button.h create mode 100644 stm-firmware/include/reflow-controller/ui/lcd.h create mode 100644 stm-firmware/include/reflow-controller/ui/menu.h create mode 100644 stm-firmware/ui/lcd.c create mode 100644 stm-firmware/ui/menu.c diff --git a/stm-firmware/Makefile b/stm-firmware/Makefile index 4f915bf..583e12f 100644 --- a/stm-firmware/Makefile +++ b/stm-firmware/Makefile @@ -45,10 +45,12 @@ CFILES += calibration.c CFILES += temp-converter.c -CFILES += rotary-encoder.c +CFILES += rotary-encoder.c button.c CFILES += stack-check.c +CFILES += ui/lcd.c ui/menu.c + DEFINES += -DDEBUGBUILD ################################################################################### diff --git a/stm-firmware/button.c b/stm-firmware/button.c new file mode 100644 index 0000000..8933eff --- /dev/null +++ b/stm-firmware/button.c @@ -0,0 +1,21 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#include diff --git a/stm-firmware/include/reflow-controller/button.h b/stm-firmware/include/reflow-controller/button.h new file mode 100644 index 0000000..8a2175e --- /dev/null +++ b/stm-firmware/include/reflow-controller/button.h @@ -0,0 +1,24 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#ifndef __BUTTON_H__ +#define __BUTTON_H__ + +#endif /* __BUTTON_H__ */ diff --git a/stm-firmware/include/reflow-controller/ui/lcd.h b/stm-firmware/include/reflow-controller/ui/lcd.h new file mode 100644 index 0000000..bf14743 --- /dev/null +++ b/stm-firmware/include/reflow-controller/ui/lcd.h @@ -0,0 +1,24 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#ifndef __LCD_H__ +#define __LCD_H__ + +#endif /* __LCD_H__ */ diff --git a/stm-firmware/include/reflow-controller/ui/menu.h b/stm-firmware/include/reflow-controller/ui/menu.h new file mode 100644 index 0000000..4574d11 --- /dev/null +++ b/stm-firmware/include/reflow-controller/ui/menu.h @@ -0,0 +1,24 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#ifndef __MENU_H__ +#define __MENU_H__ + +#endif /* __MENU_H__ */ diff --git a/stm-firmware/ui/lcd.c b/stm-firmware/ui/lcd.c new file mode 100644 index 0000000..9fefa6d --- /dev/null +++ b/stm-firmware/ui/lcd.c @@ -0,0 +1,21 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#include diff --git a/stm-firmware/ui/menu.c b/stm-firmware/ui/menu.c new file mode 100644 index 0000000..2c317fd --- /dev/null +++ b/stm-firmware/ui/menu.c @@ -0,0 +1,21 @@ +/* Reflow Oven Controller +* +* Copyright (C) 2020 Mario Hüttel +* +* This file is part of the Reflow Oven Controller Project. +* +* The reflow oven controller is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +* +* The Reflow Oven Control Firmware is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with the reflow oven controller project. +* If not, see . +*/ + +#include