This file contains hidden or 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
| # Telegraf Configuration | |
| # | |
| # Telegraf is entirely plugin driven. All metrics are gathered from the | |
| # declared inputs, and sent to the declared outputs. | |
| # | |
| # Plugins must be declared in here to be active. | |
| # To deactivate a plugin, comment out the name and any variables. | |
| # | |
| # Use 'telegraf -config telegraf.conf -test' to see what metrics a config | |
| # file would generate. |
This file contains hidden or 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 <blynk.h> | |
| Servo myservo; | |
| void setup() { | |
| Blynk.begin("a38d6027dede45649462372d51dcf0b70"); | |
| myservo.attach(D2); | |
| myservo.write(0); | |
| } |
This file contains hidden or 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 <blynk.h> | |
| bool previousLevel=0; | |
| bool currentLevel=0; | |
| void setup() { | |
| Serial.begin(9600); | |
| Blynk.begin("a38d6027dede45649462372d51dcf0b70"); | |
| pinMode(D3, INPUT); |
This file contains hidden or 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(D3, INPUT); | |
| pinMode(D0, OUTPUT); | |
| } | |
| void loop() { | |
| digitalWrite(D0, digitalRead(D3)); | |
| } |
This file contains hidden or 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
| // Part 1 | |
| void setup() { | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| int value = analogRead(A0); | |
| Serial.println(value); | |
| delay(250); | |
| } |
This file contains hidden or 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(D6, OUTPUT); | |
| pinMode(D3, INPUT); | |
| } | |
| void loop() { | |
| if (digitalRead(D3) == HIGH) { | |
| digitalWrite(D6, LOW); | |
| } else { | |
| digitalWrite(D6, HIGH); |
This file contains hidden or 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
| Servo myservo; | |
| void setup() { | |
| myservo.attach(D0); | |
| myservo.write(0); | |
| } | |
| void loop() { | |
| for (int i=0; i<180; i++) { | |
| myservo.write(i); |
This file contains hidden or 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
| SYSTEM_MODE(MANUAL); | |
| SYSTEM_THREAD(ENABLED); | |
| #pragma GCC optimize ("O0") | |
| int sensorPin = A3; | |
| int ledPin = D6; | |
| void setup() { | |
| pinMode(ledPin, OUTPUT); |
This file contains hidden or 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
| SYSTEM_MODE(MANUAL); | |
| SYSTEM_THREAD(ENABLED); | |
| #pragma GCC optimize ("O0") | |
| void setup() { | |
| pinMode(D6, OUTPUT); | |
| } | |
| void loop() { |