Skip to content

Instantly share code, notes, and snippets.

#include <avr/pgmspace.h>
#define DATA_1 (PORTC |= 0X01)
#define DATA_0 (PORTC &= 0XFE)
#define STRIP_PINOUT (DDRC=0xFF)
int b1 = 2;
int b2 = 3;
int b3 = 4;
#include <SPI.h>
#include <Ethernet.h> // Initialize the libraries.
#include <Servo.h>
Servo myservo;
byte mac[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; //I left the MAC address and IP address blank.
byte ip[] = { 000,000,000,000 }; // You will want to fill these in with your MAC and IP address.
EthernetServer server(80); // Assigning the port forwarded number. It's almost always 80.
<hmtl>
<head>
ARDUINO PAGE
</head>
<title>
ARDUINO + ETHERNET Page
</title>
<body bgcolor=black>
<font color=white>
<center>
/* BLUE/STR.BLUE - REED SW.
PIR - Vs: STR.ORANGE, GND:BRN, OUT: STR.GRN
Author - Gtr_Stitch
01/27/2013
*/
#include <LiquidCrystal.h>
int piez = 8;
volatile int state = LOW;
/* BLUE/STR.BLUE - REED SW.
PIR - Vs: STR.ORANGE, GND:BRN, OUT: STR.GRN
Author - Gtr_Stitch
01/27/2013
*/
#include <LiquidCrystal.h>
int piez = 8;
volatile int state = LOW;
import time
import RPi.GPIO as io
io.setmode(io.BCM)
pir_pin = 18
led_pin = 23
io.setup(pir_pin, io.IN)
io.setup(led_pin, io.OUT)