Skip to content

Instantly share code, notes, and snippets.

View michaelsarduino's full-sized avatar

michaelsarduino

View GitHub Profile
void setup() {
pinMode(3, INPUT);
Serial.begin(9600);
}
void loop() {
if(digitalRead(3) == HIGH)
{
Serial.println("Feuer!");
void setup ()
{
pinMode (13, OUTPUT) ;
pinMode (3, INPUT) ;
}
int val;
void loop ()
{
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("X: ");
Serial.print(analogRead(A0));
Serial.print(" Y: ");
Serial.print(analogRead(A1));
//
// FILE: dht11_test1.pde
// PURPOSE: DHT11 library test sketch for Arduino
//
//Celsius to Fahrenheit conversion
double Fahrenheit(double celsius)
{
return 1.8 * celsius + 32;
}
#include <IRremote.h> // IRremote Bibliothek nachladen
IRsend irsend;
// RAW Signal zum an/ausschalten des Fernsehers
unsigned int powerOn[68] = {4500, 4450, 600, 1600, 600, 1650, 550, 1650, 600, 500, 600, 550, 550, 550, 600, 500, 600, 500, 600, 1650, 550, 1650, 600, 1650, 550, 550, 550, 550, 600, 500, 600, 500, 600, 550, 550, 550, 550, 1650, 600, 500, 600, 550, 550, 550, 550, 550, 600, 500, 600, 500, 600, 1600, 600, 550, 600, 1600, 600, 1650, 550, 1650, 600, 1650, 550, 1650, 600, 1650, 550};
void setup()
{
Serial.begin(9600);
/*
* IRremote: IRrecvDump - dump details of IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
if(analogRead(3) < 50)
{
for(int x = 0;x < 100; x++)
{
#include <SPI.h>
#include <SD.h>
#include <Time.h>
File Datei;
void setup() {
Serial.begin(9600);
setTime(13,58,10,01,11,15);