Skip to content

Instantly share code, notes, and snippets.

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);
}
#include <LiquidCrystal.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
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,
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++)
{
#include <iostream>
int main ()
{
char a = 5;
char b = '5';
std::cout << "Variable a: " << a << std::endl;
std::cout << "Variable b: " << b << std::endl;
}
#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;
int main ()
{
int a = 5;
int b = 3;
int c;
c = a + b;
std::cout << "Addition: " << c << std::endl;
c = a - b;
#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;
#include <iostream>
#include <string>
int main ()
{
std::string Produkte[3];
Produkte[0] = "Messer";
Produkte[1] = "Teller";
Produkte[2] = "Tasse";