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
#include <LiquidCrystal.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS 2 | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); |
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
import processing.serial.*; | |
import cc.arduino.*; | |
Arduino arduino; | |
color off = color(4, 79, 111); | |
color on = color(84, 145, 158); | |
int[] values = { Arduino.LOW, Arduino.LOW, Arduino.LOW, Arduino.LOW, |
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 <iostream> | |
int main () | |
{ | |
char a = 5; | |
char b = '5'; | |
std::cout << "Variable a: " << a << std::endl; | |
std::cout << "Variable b: " << b << std::endl; | |
} |
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 <iostream> | |
int main () | |
{ | |
int a = 5; | |
std::cout << "Wert nach der ersten Zuweisung: " << a << std::endl; | |
a = 43; | |
std::cout << "Wert nach der zweiten Zuweisung: " << a << std::endl; | |
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 main () | |
{ | |
int a = 5; | |
int b = 3; | |
int c; | |
c = a + b; | |
std::cout << "Addition: " << c << std::endl; | |
c = a - b; |
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 <iostream> | |
int main () | |
{ | |
int a = 5, b, a1 = 5, b1; | |
b = a++; | |
std::cout << "a: " << a << std::endl; | |
std::cout << "b: " << b << std::endl; |
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 <iostream> | |
#include <string> | |
int main () | |
{ | |
std::string Produkte[3]; | |
Produkte[0] = "Messer"; | |
Produkte[1] = "Teller"; | |
Produkte[2] = "Tasse"; |
OlderNewer