mirror of
https://github.com/brendanhaines/kilncontroller.git
synced 2024-12-25 18:37:15 -07:00
removes onboard led blink
This commit is contained in:
parent
ffb56e01da
commit
a1436fc0a7
|
@ -5,16 +5,13 @@
|
||||||
|
|
||||||
int MISO0 = 12;
|
int MISO0 = 12;
|
||||||
int CLK0 = 13;
|
int CLK0 = 13;
|
||||||
int CS0 = 16;
|
int CS0 = 2;
|
||||||
|
|
||||||
LiquidCrystal_I2C lcd(0x27, 16, 2);
|
LiquidCrystal_I2C lcd(0x27, 16, 2);
|
||||||
MAX6675 t0(CLK0, CS0, MISO0);
|
MAX6675 t0(CLK0, CS0, MISO0);
|
||||||
Adafruit_MCP23017 mcp;
|
Adafruit_MCP23017 mcp;
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
// LED
|
|
||||||
pinMode(2, OUTPUT);
|
|
||||||
|
|
||||||
// I2C
|
// I2C
|
||||||
Wire.pins(4, 5);
|
Wire.pins(4, 5);
|
||||||
|
|
||||||
|
@ -27,12 +24,10 @@ void setup() {
|
||||||
|
|
||||||
// MCP23017 GPIO expander
|
// MCP23017 GPIO expander
|
||||||
mcp.begin();
|
mcp.begin();
|
||||||
mcp.pinMode(0, OUTPUT);
|
mcp.pinMode(8, OUTPUT);
|
||||||
mcp.digitalWrite(0, HIGH);
|
mcp.digitalWrite(8, HIGH);
|
||||||
digitalWrite(2, LOW);
|
|
||||||
delay(100);
|
delay(100);
|
||||||
mcp.digitalWrite(0, LOW);
|
mcp.digitalWrite(8, LOW);
|
||||||
digitalWrite(2, HIGH);
|
|
||||||
|
|
||||||
// Clear LCD
|
// Clear LCD
|
||||||
lcd.setCursor(0, 0);
|
lcd.setCursor(0, 0);
|
||||||
|
@ -50,13 +45,11 @@ void loop() {
|
||||||
// LED stuff
|
// LED stuff
|
||||||
lcd.setCursor(0, 1);
|
lcd.setCursor(0, 1);
|
||||||
lcd.print("LED: ON ");
|
lcd.print("LED: ON ");
|
||||||
mcp.digitalWrite(0, HIGH);
|
mcp.digitalWrite(8, HIGH);
|
||||||
digitalWrite(2, LOW);
|
|
||||||
delay(2000);
|
delay(2000);
|
||||||
lcd.setCursor(0, 1);
|
lcd.setCursor(0, 1);
|
||||||
lcd.print("LED: OFF");
|
lcd.print("LED: OFF");
|
||||||
mcp.digitalWrite(0, LOW);
|
mcp.digitalWrite(8, LOW);
|
||||||
digitalWrite(2, HIGH);
|
|
||||||
delay(2000);
|
delay(2000);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user