Mercurial > code > home > repos > homeauto
changeset 938:dce8e2868b54
bathroom arduino pin notes
Ignore-this: bc3785cad3b9b8820547fb4edb86e12e
darcs-hash:20131012061402-312f9-b6be92eb388d2ef3a643c93f4ea3d278ba816e18
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 11 Oct 2013 23:14:02 -0700 |
parents | 38a4769595e2 |
children | f2a2d0cc22b4 |
files | service/garageArduino/bathroom_recv/bathroom_recv.ino service/garageArduino/bathroom_satt/bathroom_satt.ino |
diffstat | 2 files changed, 21 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/service/garageArduino/bathroom_recv/bathroom_recv.ino Fri Oct 11 23:05:32 2013 -0700 +++ b/service/garageArduino/bathroom_recv/bathroom_recv.ino Fri Oct 11 23:14:02 2013 -0700 @@ -2,8 +2,15 @@ board: 'Digispark (Tiny Core)' programmer: 'Digispark' - pin 0 is the output to the LEDs - pin 2 is the input from garage arduino + pin 0 DI from radio + pin 1 DO to radio (and green status led) + pin 2 SCK to radio + pin 3 output to LED string + pin 4 input from garage arduino + pin 5 output to garage arduino + + (attiny85 pin 5 is MOSI, pin 6 is MISO, 7 might be clock) + */ #include <VirtualWire.h> @@ -16,7 +23,7 @@ // NEO_GRB Pixels are wired for GRB bitstream // NEO_KHZ400 400 KHz bitstream (e.g. FLORA pixels) // NEO_KHZ800 800 KHz bitstream (e.g. High Density LED strip) -Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, 0, NEO_GRB + NEO_KHZ800); +Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, 3, NEO_GRB + NEO_KHZ800); #define SET(i, r, g, b) strip.setPixelColor(i, strip.Color(r, g, b)); strip.show(); @@ -58,7 +65,7 @@ void setup() { pinMode(1, OUTPUT); // for errors - vw_set_rx_pin(2); + vw_set_rx_pin(4); vw_setup(2000); // Bits per sec vw_rx_start(); // Start the receiver PLL running
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/garageArduino/bathroom_satt/bathroom_satt.ino Fri Oct 11 23:14:02 2013 -0700 @@ -0,0 +1,10 @@ +/* + - DI from radio + - DO to radio + - SCK to radio + - output to the LED string + - PIR in + - room light analog in + - temp/humid https://github.com/adafruit/DHT-sensor-library +*/ +