This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to the Arduino Community! Have fun and learn! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpp | |
void blah() { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Like this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int Fridge = 2; | |
const int Freezer = 3; | |
const int DoorLED = 12; | |
const int Speaker = 13; | |
unsigned long startTime; | |
unsigned long currentTime; | |
const unsigned long period = 30000; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
void setup() { | |
Serial.begin(9600); /* begin serial for debug / | |
Wire.begin(D1, D2); / join i2c bus with SDA=D1 and SCL=D2 of NodeMCU / | |
} | |
void loop() { | |
Wire.beginTransmission(8); / begin with device address 8 / | |
Wire.write("Hello Arduino"); / sends hello string / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pinMode (8, OUTPUT); | |
pinMode (9, OUTPUT); | |
pinMode (10, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(10, HIGH); | |
delay (1000); | |
digitalWrite (10, LOW); | |
delay (1000); | |
digitalWrite(9, HIGH); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup (){ | |
pinMode(8, OUTPUT); | |
pinMode(2, INPUT); | |
} | |
void loop () { | |
if (digitalRead(2) == HIGH){ | |
digitalWrite (8,HIGH); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup (){ | |
pinMode(8, OUTPUT); | |
pinMode(2, INPUT); | |
} | |
void loop () { | |
if (digitalRead(2) == HIGH){ | |
digitalWrite (8,HIGH); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <LCD.h> | |
#include <LiquidCrystal_SI2C.h> | |
#include <LiquidCrystal_SR.h> | |
#include <LiquidCrystal_SR1W.h> | |
#include <LiquidCrystal_SR2W.h> | |
#include <LiquidCrystal_SR3W.h> | |
#include <LCD.h> | |
#include <LiquidCrystal.h> | |
#include <LiquidCrystal_I2C.h> |
OlderNewer