-
Notifications
You must be signed in to change notification settings - Fork 1
Installing
Caio Frota edited this page Mar 25, 2021
·
1 revision
- Checkout the latest changes or a release from GitHub.
- Open the file "src/cf-arduino-humidifier/cf-arduino-humidifier.ino" on Arduino IDE.
- Select your board (Tools > Board > ESP8266 Boards).
- Upload (Sketch > Upload).
PS: If you are using a ESP-01, set it up as flash mode (Connect GPIO0 PIN to GND) before upload.
- Open the file "src/cf-arduino-humidifier/dht.ino" and choose what type of sensor you have:
//DHT dht(DHT_PIN_DATA, DHT11); // DHT11.
DHT dht(DHT_PIN_DATA, DHT22); // DHT22.
- Open the file "src/cf-arduino-humidifier/wifimanager.ino" and change the following lines:
const String WIFI_DEFAULT_SSID = wifiManager.getDefaultAPName(); // Default SSID.
const String WIFI_DEFAULT_PASSWORD = "12345678"; // Default Wi-Fi password.
- Open the file "src/cf-arduino-humidifier/display.ino" and change the address of your display:
#define CF_DISPLAY_ADDRESS 0x3C // Display I2C address.
- Open the file "src/cf-arduino-humidifier/cf-arduino-humidifier.ino" and look for the following line:
//#define USE_DISPLAY // Comment this line if you won't use display.
- Open the file "src/cf-arduino-humidifier/cf-arduino-humidifier.ino" and look for the following line:
#define USE_ROTARY // Comment this line if you won't use rotary encoder.