ソースを参照

Rename of main-file to cpp

Thomas Chef 8 年 前
コミット
792fc21cee
2 ファイル変更9 行追加4 行削除
  1. 7 1
      README.md
  2. 2 3
      wifi_lux_sensor.ino

+ 7 - 1
README.md

@@ -2,4 +2,10 @@ This project is for builing a WiFi-connected Lux-sensor for the garage.
 
 The sensor used is Adafruit TSL2561.
 
-Useful links: http://blog.abarbanell.de/arduino-esp8266/iot/i2c/
+WiFi ssid and password are stored in a file called config.h, which is not commited but looks like this:
+#define WIFI_SSID "WiFi-ssid"
+#define WIFI_PASSWORD "password"
+
+Useful links:
+http://blog.abarbanell.de/arduino-esp8266/iot/i2c/
+https://github.com/esp8266/Arduino#documentation

+ 2 - 3
wifi_lux_sensor.ino

@@ -26,10 +26,9 @@ void connectWifi() {
 }
 
 void setup() {
-  Serial.println("setup()");
   Serial.begin(38400); //Opens USB-Serial connection for terminal
-  delay(2000);
-  Serial.println("Serial interface is ready");
+  delay(1000);
+  Serial.println("Init of WiFi-Lux-sensor project");
   connectWifi();
   Wire.begin(4, 5); // sda on pin D2, scl on pin D1
 }