This file contains hidden or 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 <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; |
This file contains hidden or 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 <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. |
This file contains hidden or 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
<hmtl> | |
<head> | |
ARDUINO PAGE | |
</head> | |
<title> | |
ARDUINO + ETHERNET Page | |
</title> | |
<body bgcolor=black> | |
<font color=white> | |
<center> |
This file contains hidden or 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
/* 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; |
This file contains hidden or 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
/* 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; |
This file contains hidden or 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 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) |