Skip to content

Instantly share code, notes, and snippets.

@davedarko
davedarko / remote.pde
Created December 26, 2011 18:31
RGB Arduino remote code
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);
}
@davedarko
davedarko / sec.sh
Created February 5, 2012 11:26
24h Webcam Script
#!/bin/bash
time=$(date +%H%M)
HOME=/path/to/pic
webcam="/dev/video0"
if [ -c "/dev/video1" ] ;
then ( webcam="/dev/video1" )
fi
cd $HOME
@davedarko
davedarko / temperatur.pde
Created February 9, 2012 12:09
Arduino LM75
// 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);
@davedarko
davedarko / timelapse.ino
Last active December 17, 2015 05:19
timelapse arduino script for keycam hack
/*
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
@davedarko
davedarko / hadBeautifier.tamper.js
Last active August 29, 2015 14:00
js scripts for tampermonkey to change the appearance of hackaday.io
// ==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==
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;
/*
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
@davedarko
davedarko / deauther_killer.ino
Created January 16, 2018 17:20
Arduino Script to auto connect to deauthers by spacehuhn with standard passwords and replaces them with whatever you want.
#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);
@davedarko
davedarko / neopixel_clock.ino
Created June 2, 2018 13:17
Unexpected Maker Neo7Segment binary clock
#include <Wire.h>
#include <Time.h>
#include <TimeLib.h>
#include <DS3232RTC.h>
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#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";