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(13, OUTPUT); //Pin 13 als Output festlegen | |
} | |
void loop() { | |
digitalWrite(13, HIGH); //Spannung an Pin 13 anlegen | |
delay(1000); //Eine Sekunde warten | |
digitalWrite(13, LOW); //Keine Spannung an Pin 13 | |
delay(1000); //Eine Sekunde warten |
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(3, OUTPUT); //Pin 3 als Output festlegen | |
pinMode(5, OUTPUT); //Pin 5 als Output festlegen | |
pinMode(6, OUTPUT); //Pin 6 als Output festlegen | |
analogWrite(3, 100); | |
analogWrite(5, 200); | |
analogWrite(6, 50); | |
} |
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(3, OUTPUT); //Pin 3 als Output festlegen | |
pinMode(5, OUTPUT); //Pin 5 als Output festlegen | |
pinMode(6, OUTPUT); //Pin 6 als Output festlegen | |
} | |
void loop() { | |
for(int i = 0; i < 255; i++) | |
{ |
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 <LiquidCrystal.h> | |
LiquidCrystal lcddisplay(12, 11, 5, 4, 3, 2); | |
void setup() | |
{ | |
lcddisplay.begin(16, 2); | |
lcddisplay.print("Hello World"); | |
} |
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(A3, INPUT); | |
pinMode(3, OUTPUT); | |
} | |
void loop() | |
{ | |
analogWrite(3, (analogRead(A3)*0.249)); | |
delay(50); |
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
int trig = 7; | |
int echo = 8; | |
int led = 13; | |
float schallgeschwindigkeit = 331.5+0.6*20; | |
void setup() | |
{ | |
pinMode(trig, OUTPUT); | |
pinMode(echo, INPUT); | |
pinMode(led, OUTPUT); |
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(13, OUTPUT); | |
pinMode(5, INPUT); | |
} | |
void loop() | |
{ | |
if(digitalRead(5)) | |
{ |
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(A3, INPUT); | |
pinMode(3, OUTPUT); | |
} | |
void loop() | |
{ | |
analogWrite(3, (analogRead(A3)*0.249)); | |
delay(50); |
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 <LiquidCrystal.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS 2 | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); |
OlderNewer