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() { | |
Serial.begin(9600); | |
pinMode(7, INPUT); | |
} | |
void loop() { | |
if(digitalRead(7) == HIGH) | |
{ | |
Serial.println("Frei!"); |
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
int wert = 0; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
wert = analogRead(A0); | |
Serial.print(wert); |
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(2, INPUT); | |
Serial.begin(9600); | |
} | |
void loop() { | |
if(digitalRead(2) == HIGH) | |
{ | |
Serial.println("Laerm!"); |
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() { | |
Serial.begin(9600); | |
pinMode(7, INPUT); | |
} | |
void loop() { | |
if(digitalRead(7) == HIGH) | |
{ | |
Serial.println("Magnet gefunden!"); | |
} |
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() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
if(analogRead(7) < 890) | |
{ | |
Serial.println("Magnet gefunden!"); | |
} | |
else |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://arduino.cc | |
This example code is in the public domain. |
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
//04.01.2016 | |
//Code by Michael Bonacina | |
//michaelsarduino.blogspot.de | |
int motor1_1 = 0; | |
int motor1_2 = 1; | |
int motor1_speed = 3; | |
int motor2_1 = 2; | |
int motor2_2 = 4; | |
int motor2_speed = 5; |
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
int motor1_1 = 0; | |
int motor1_2 = 1; | |
int motor1_speed = 3; | |
int motor2_1 = 2; | |
int motor2_2 = 4; | |
int motor2_speed = 5; | |
int motor3_1 = 6; | |
int motor3_2 = 7; | |
int motor3_speed = 9; | |
int motor4_1 = 8; |
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 <dht11.h> | |
dht11 DHT11; | |
#define DHT11PIN 2 | |
void setup() | |
{ | |
Serial.begin(115200); | |
} |
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 <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
String temp = "Bisher noch nichts empfangen"; | |
const char* ssid = "***************"; | |
const char* password = "***************"; | |
MDNSResponder mdns; |