0% found this document useful (0 votes)
4 views24 pages

arduino1s

Uploaded by

Jannis jle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views24 pages

arduino1s

Uploaded by

Jannis jle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

  
void setup(){
}
void loop(){

refrain();

refrain();

}
void refrain(){
tone(11,220);
delay(300);

}
int a, b, c;
long n, m;
float x, y;

void setup(){
a=10;
n=100-8;
m=2*a+15-3;
a=200+20;
}

void loop(){
tone(11,a);
delay(n);
noTone();
delay(m);
}

int f;
void setup(){
f=100;
}
void loop(){
tone(11,f);
delay(100);
f=f+1;
}

int x=0;
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.println(x);
x=x+5;
}
void setup(){
Serial.begin(9600);
for(int n=0; n<30; n=n+1){
Serial.println(“Hallo“);
Serial.println(n);
}
}
void loop(){}
void setup(){
pinMode(3,OUTPUT);
}
void loop(){
digitalWrite(3,HIGH);
delay(1000);
digitalWrite(3,LOW);
delay(1000);
analogWrite(3,127);
delay(1000);
}

int s;
void setup() {
randomSeed(analogRead(A1));
Serial.begin(9600);
}
void loop {
s=random(1,7);
Serial.println(s);
delay(1000);
}
void setup(); {
serialBegin(6900);
}
void loop {
for(int i=0;i<10;i=i+1){
Serial.pint(“Huhu“);
for(u=0,u<100;u=u+1){
Serial.print(i);
Serial.print(“,“);
Serial.print(u);
}
}
int x=0;
void setup(){
Serial.begin(9600);
randomSeed(analogRead(A1));
x=random(1,7);
if(x<6) Serial.println(x);
if(x>5) {
Serial.print(“Du hast eine 6!“);
Serial.print(“Nochmal würfeln!“);
}
}
void loop(){}
int i;
void setup(){
pinMode(4,INPUT_PULLUP);
Serial.begin(9600);
}
void loop(){
i=digitalRead(4);
Serial.println(i);
}
while(i<100) {
tone(10,i);
i=i+1;
}

int x=1; void setup(){


void setup(){ Serial.begin(9600);
while(x<100){ }
Serial.println(x); void loop(){
x=x+1; while(digitalRead(4)==1){
} }
while(2<5){ Serial.print(“von jetzt“);
Serial.print(“!“); while(digitalRead(4)==0){
} }
} Serial.print(“bis jetzt“);
void loop(){} }

You might also like