Skip to content

Instantly share code, notes, and snippets.

View technobly's full-sized avatar

Brett Walach technobly

View GitHub Profile
@technobly
technobly / sparkGroveLCDRGB.cpp
Last active August 29, 2015 13:55
GROVE LCD RGB Library For Spark Core
//-----------------------------------------------
// GROVE LCD RGB Library For Spark Core
//===============================================
// http://www.seeedstudio.com/wiki/Grove_-_LCD_RGB_Backlight
// https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight
//-----------------------------------------------
// Technobly / BDub - Jan 30th, 2014
//===============================================
#include "application.h"
@technobly
technobly / sparkRubeGoldLED.cpp
Created February 12, 2014 05:10
SPARK CORE RUBE GOLDBERG LED TOGGLE CHALLENGE
/*
* =================================
* RUBE GOLDBERG LED TOGGLE
* ---------------------------------
* BDub / Technobly - Feb 11th, 2014
* =================================
*
*/
uint16_t TIM_ARR = (uint16_t)(65535/6); // Calc PWM period.
#define SMTP_SERVER "smtp.yourserver.com"
#define SMTP_USER_BASE64 "base64_encode_your_user"
#define SMTP_PASS_BASE64 "base64_encode_your_pass"
#define SMTP_FROM_EMAIL "email@from.com"
#define SMTP_TO_EMAIL "email@to.com"
#define SMTP_SUBJECT "Email from a Core!"
#define SMTP_BODY "Body body body"
#include "application.h"
@technobly
technobly / README.md
Last active August 29, 2015 14:03
NeoPixel Library Timing Tweak for TM1829 Pixels (use WS2812B define)

Keybase proof

I hereby claim:

  • I am technobly on github.
  • I am bdub (https://keybase.io/bdub) on keybase.
  • I have a public key whose fingerprint is 4C0E 1402 48CC C55E 1312 707D B62C 54A3 C279 6C78

To claim this, I am signing this object:

@technobly
technobly / servo_test.cpp
Created December 28, 2014 15:59
Spark Core Manual Servo Tester
#include "application.h"
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
void setup()
{
myservo.attach(A0); // attaches the servo on the A0 pin to the servo object
@technobly
technobly / police-button.cpp
Last active December 15, 2015 14:17
Particle Internet Button Police Lights
// 1. CREATE A NEW APP at https://build.particle.io
// 2. PASTE THIS CODE IN and SAVE
// 3. GO TO LIBRARIES, OPEN the NEOPIXEL library
// 4. Click INLUCDE IN APP
// 5. SELECT THE APP YOU PASTED/SAVED THIS CODE IN
// 6. Click ADD TO THIS APP
// 7. COMPILE and FLASH to a PARTICLE INTERNET BUTTON
// 8. SHINE IT DOWN ON SOMETHING AND BE AMAZED :)
// 9. WOOP WOOP!!, THAT'S THE SOUND OF THE POLICE!
//
@technobly
technobly / stalkbot.js
Last active December 17, 2015 21:29
A Turntable.fm bot that stalks a specific user. If they are on, it will find them, and follow them... log the chat in their room to the console. >:| muwhahahaha!!!
// .d8888b. 88888888888 d8888 888 888 d8P 888888b. .d88888b. 88888888888
// d88P Y88b 888 d88888 888 888 d8P 888 "88b d88P" "Y88b 888
// Y88b. 888 d88P888 888 888 d8P 888 .88P 888 888 888
// "Y888b. 888 d88P 888 888 888d88K 8888888K. 888 888 888
// "Y88b. 888 d88P 888 888 8888888b 888 "Y88b 888 888 888
// "888 888 d88P 888 888 888 Y88b 888 888 888 888 888
// Y88b d88P 888 d8888888888 888 888 Y88b 888 d88P Y88b. .d88P 888
// "Y8888P" 888 d88P 888 88888888 888 Y88b 8888888P" "Y88888P" 888
//
// Stalkbot - Copyright (C) 2013 B^Dub - dubbytt@gmail.com - Last update May 31st 2013
@technobly
technobly / autoreconnect.js
Created June 15, 2013 21:25
A Turntable.fm bot that automatically reconnects to tt.fm after the internet connection goes away and comes back, or tt.fm goes down for maintenance and comes back. Responds to /uptime command and will report uptime, how many times it has been down and how long the last time was.
// .d8888b. 888 888 d8888 88888888888 88888888888 Y88b d88P
// d88P Y88b 888 888 d88888 888 888 Y88b d88P
// 888 888 888 888 d88P888 888 888 Y88o88P
// 888 8888888888 d88P 888 888 888 Y888P
// 888 888 888 d88P 888 888 888 888
// 888 888 888 888 d88P 888 888 888 888
// Y88b d88P 888 888 d8888888888 888 888 888
// "Y8888P" 888 888 d88P 888 888 888 888
//
// ChattyTT - Copyright (C) 2013 B^Dub - dubbytt@gmail.com - Last update June 15th 2013