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