Skip to content

Instantly share code, notes, and snippets.

View michaelsarduino's full-sized avatar

michaelsarduino

View GitHub Profile
const int button = 12; // Button Pin
const int led = 13; // LED Pin
int led_status = HIGH;
int button_status;
int vorheriger_button_status = LOW;
long letztes_prellen = 0;
long entprellzeit = 60;
void setup()
{
Serial.begin(9600);
}
void loop()
{
int button;
int status_A0 = analogRead(A0);
if(status_A0 < 10)
#include <MemoryFree.h>
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(freeMemory());
delay(100);
#include <SoftPWM.h>
#include <SoftPWM_timer.h>
int status_pin = 1;
int richtung = 1;
boolean bewegung = false;
int counter = 0;
void setup() {
pinMode(2, INPUT);
import time
import serial
import smtplib
TO = 'EMPFAENGER HIER EINGEBEN'
GMAIL_USERNAME = 'ABSENDER HIER EINGEBEN'
GMAIL_PASSWORD = 'PASSWORT ABSENDER HIER EINGEBEN'
BETREFF = 'Arduino'
TEXT = 'Hier den Email Text eingeben'
import processing.serial.*;
Serial arduino;
int xPos = 1;
void setup () {
size(500, 300);
arduino = new Serial(this, Serial.list()[0], 9600);
void setup() {
//starten der seriellen Kommunikation
Serial.begin(9600);
}
void loop() {
//auslesen des Wertes von Pin A0 und senden an PC
Serial.println(analogRead(A0));
//kurz warten
delay(2);
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop() {
if(Serial.available() > 0)
{
int status_led = Serial.read();
byte smiley[8] = { B00000,
B01010,
B01010,
B00000,
B10001,
B01110,
B00000, };
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte smiley[8] = { B00000,
B01010,
B01010,
B00000,
B10001,
B01110,