initial commit
This commit is contained in:
17
reflow_plate_fw/src/board.h
Normal file
17
reflow_plate_fw/src/board.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#define LCD_SDA PB3
|
||||
#define LCD_SCL PB6
|
||||
|
||||
#define THERM_CS PA4
|
||||
#define THERM_DO PA7
|
||||
#define THERM_CL PA6
|
||||
|
||||
#define BUt_LEFT PB15
|
||||
#define BUt_RIGHT PA10
|
||||
#define BUT_UP PA11
|
||||
#define BUT_DOWN PA9
|
||||
#define BUT_CENTER PA8
|
||||
|
||||
#define HEAT_OUT PA2
|
||||
10
reflow_plate_fw/src/button.cpp
Normal file
10
reflow_plate_fw/src/button.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "button.h"
|
||||
|
||||
void initButton(void)
|
||||
{
|
||||
|
||||
}
|
||||
void handleButton(void)
|
||||
{
|
||||
|
||||
}
|
||||
7
reflow_plate_fw/src/button.h
Normal file
7
reflow_plate_fw/src/button.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "board.h"
|
||||
|
||||
void initButton(void);
|
||||
void handleButton(void);
|
||||
12
reflow_plate_fw/src/heater.cpp
Normal file
12
reflow_plate_fw/src/heater.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "heater.h"
|
||||
|
||||
|
||||
void initHeater(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void handleHeater(void)
|
||||
{
|
||||
|
||||
}
|
||||
7
reflow_plate_fw/src/heater.h
Normal file
7
reflow_plate_fw/src/heater.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "board.h"
|
||||
|
||||
void initHeater(void);
|
||||
void handleHeater(void);
|
||||
12
reflow_plate_fw/src/lcd.cpp
Normal file
12
reflow_plate_fw/src/lcd.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "lcd.h"
|
||||
|
||||
|
||||
void initLCD(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void handleLCD(void)
|
||||
{
|
||||
|
||||
}
|
||||
6
reflow_plate_fw/src/lcd.h
Normal file
6
reflow_plate_fw/src/lcd.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "Arduino.h"
|
||||
#include "board.h"
|
||||
|
||||
|
||||
void initLCD(void);
|
||||
void handleLCD(void);
|
||||
24
reflow_plate_fw/src/main.cpp
Normal file
24
reflow_plate_fw/src/main.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <Arduino.h>
|
||||
#include "board.h"
|
||||
|
||||
#include "lcd.h"
|
||||
#include "thermo.h"
|
||||
#include "button.h"
|
||||
#include "heater.h"
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
initLCD();
|
||||
initThermo();
|
||||
initButton();
|
||||
initHeater();
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
handleLCD();
|
||||
handleThermo();
|
||||
handleButton();
|
||||
handleHeater();
|
||||
}
|
||||
12
reflow_plate_fw/src/thermo.cpp
Normal file
12
reflow_plate_fw/src/thermo.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "thermo.h"
|
||||
|
||||
|
||||
void initThermo(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void handleThermo(void)
|
||||
{
|
||||
|
||||
}
|
||||
7
reflow_plate_fw/src/thermo.h
Normal file
7
reflow_plate_fw/src/thermo.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "board.h"
|
||||
|
||||
void initThermo(void);
|
||||
void handleThermo(void);
|
||||
Reference in New Issue
Block a user