Skip to content

Instantly share code, notes, and snippets.

View technobly's full-sized avatar

Brett Walach technobly

View GitHub Profile
@technobly
technobly / particle-ping-sound.cpp
Created October 21, 2015 04:14
Particle Photon/Core/P1/Electron Ping PulseIn Example (HC-SR04) with Sound!
/*
******************************************************************************
* Copyright (c) 2015 Particle Industries, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
@technobly
technobly / particle-ping.cpp
Created October 21, 2015 02:30
Particle Photon/Core/P1/Electron Ping PulseIn Example (HC-SR04)
/*
******************************************************************************
* Copyright (c) 2015 Particle Industries, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
@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

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 / README.md
Last active August 29, 2015 14:03
NeoPixel Library Timing Tweak for TM1829 Pixels (use WS2812B define)
@technobly
technobly / sparkWirelessServo.cpp
Created April 8, 2014 13:55
Spark Core Wireless Servo
// WIRELESS SERVO EXAMPLE CODE
// BDub 4/7/2014
//
// Connect RED wire to VIN (~5V)
// Connect ORANGE, YELLOW, or WHITE wire to A0 (servo signal)
// Connect BLACK or BROWN wire to GND (0V)
// Adjust these connections for your particular servo
// if you have a wiring diagram for it.
//
//
#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 / 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.
@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"