This file contains 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
int red = 11, green=10, blue=9, white=6; | |
String tempString=String(100), readString = String(100); | |
void setup() { | |
pinMode(red, OUTPUT); | |
pinMode(green, OUTPUT); | |
pinMode(blue, OUTPUT); | |
pinMode(white, OUTPUT); | |
Serial.begin(9600); | |
} |
This file contains 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
#!/bin/bash | |
time=$(date +%H%M) | |
HOME=/path/to/pic | |
webcam="/dev/video0" | |
if [ -c "/dev/video1" ] ; | |
then ( webcam="/dev/video1" ) | |
fi | |
cd $HOME |
This file contains 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
// based on http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1290115931 | |
#include <Wire.h> | |
int t,l; | |
void setup() { | |
Wire.begin(); | |
Serial.begin(9600); | |
} | |
void loop() { | |
Wire.send(0x00); |
This file contains 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
/* | |
Shutterprogram for keyfob camera hack | |
http://davedarko.de/blog.php?show=blog/100520131849.php | |
*/ | |
void setup() { | |
// initialize the digital pins as an output. | |
// Pin 13 is the shutter switch | |
// Pin 12 is the power switch |
This file contains 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
// ==UserScript== | |
// @name hadBeautifier | |
// @namespace http://hackaday.io/hacker/3459 | |
// @version 0.1 | |
// @description This changes the appearance of all pages | |
// @match *://hackaday.io | |
// @match *://hackaday.io/* | |
// @copyright 2014+, DaveDarko | |
// ==/UserScript== |
This file contains 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
int pin_A = 5; | |
int pin_B = 6; | |
int pin_C = 7; | |
int pin_D = 8; | |
int pin_E = 9; | |
int pin_F = 10; | |
int pin_G = 11; | |
int pin_H = 12; | |
int pin_I = 13; |
This file contains 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
/* | |
Based on https://github.com/maltesemanTS1/Charlieplexing-the-Arduino | |
http://arduino.cc/en/Tutorial/BitMask | |
*/ | |
const int LED_A = 21; //LED row 1 | |
const int LED_B = 20; //LED row 2 | |
const int LED_C = 19; //LED row 3 | |
const int LED_D = 18; //LED row 1 | |
const int LED_E = 17; //LED row 2 |
This file contains 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 <ESP8266WiFi.h> | |
WiFiClient client; | |
const char* ssid = "pwned"; | |
const char* password = "deauther"; | |
const char* host = "192.168.4.1"; | |
void setup() | |
{ | |
Serial.begin(115200); |
This file contains 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 <Wire.h> | |
#include <Time.h> | |
#include <TimeLib.h> | |
#include <DS3232RTC.h> | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif |
This file contains 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 <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include <ArduinoJson.h> | |
/* | |
SHA1 fingerprints found in certificate | |
*/ | |
// tindie | |
String url = "/api/v1/order/?limit=1&shipped=false&format=json&username=davedarko&api_key=YOURAPIKEY"; | |
const char* host = "www.tindie.com"; |
OlderNewer