Skip to content

Instantly share code, notes, and snippets.

View rondagdag's full-sized avatar

Ron Dagdag rondagdag

View GitHub Profile
@rondagdag
rondagdag / Arduino101_Pixy.ino
Last active March 23, 2025 02:08
Arduino 101 + Pixy
//
// begin license header
//
// This code is created by Ron Dagdag
//
// All source code is provided under the terms of the
// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).
// Those wishing to use Pixy source code, software and/or
// technologies under different licensing terms should contact us at
// ron at dagdag dot net. Such licensing terms are available for
@rondagdag
rondagdag / coffeeAmazonDRS.ino
Created February 24, 2017 20:42
coffeeAmazonDRS.ino
/*******************************************************************
Check out the included Arduino sketches and the getting started
guide here!
https://github.com/andium/AmazonDRS
This is an Arduino implementation of an Amazon Dash Replenishment
device. It currently supports the critical API endpoints necessary
for registering a device and submitting replenishment requests. This
library is tightly coupled to the WiFi101 library, which means it will
work great with the Arduino MKR1000, Adafruit Feather MO w/ the ATWINC1500,
/*******************************************************************
Arduino Sketch to reorder items via Amazon Dash Service
Written by @RonDagDag and Johnathan Hottell
Read more at https://www.hackster.io/coffee-drinkers/amazon-drs-promise-never-miss-coffee-break-again-a88584
Licensed under the Apache License, Version 2.0 (the "License");
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@rondagdag
rondagdag / iotsnowglobe_esp8266.ino
Created July 5, 2017 23:13
IoTSnowGlobe for esp8266
/*
IoT Snow Globe
Ron Dagdag @rondagdag
WiFi Web Server
A simple web server that shows the value of the analog input pins.
using a WiFi shield.
This example is written for a network using WPA encryption. For
@rondagdag
rondagdag / facedroid.nodered
Created January 20, 2018 22:09
Face Droid
[{"id":"3b103181.712cee","type":"tab","label":"Flow 1"},{"id":"31f51798.fbcf78","type":"inject","z":"3b103181.712cee","name":"1s tick","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"x":161,"y":653,"wires":[["afb09ed3.3b053"]]},{"id":"c9638685.c54e28","type":"arduino out","z":"3b103181.712cee","name":"","pin":"9","state":"OUTPUT","arduino":"bbed5737.2789a8","x":664.5,"y":701,"wires":[]},{"id":"ff197310.fad94","type":"function","z":"3b103181.712cee","name":"Toggle output on input","func":"\n// If it does exist make it the inverse of what it was or else initialise it to false\n// (context variables persist between calls to the function)\ncontext.level = !context.level || false;\n\n// set the payload to the level and return\nmsg.payload = context.level;\nreturn msg;","outputs":1,"noerr":0,"x":369,"y":653,"wires":[["c9638685.c54e28"]]},{"id":"55a8abbd.d25d14","type":"debug","z":"3b103181.712cee","name":"","active":true,"console":"false","complete":"payload","x":667.5,"y":219,"