Skip to content

Instantly share code, notes, and snippets.

View mbparks's full-sized avatar
💭
Crushin' it.

mike parks mbparks

💭
Crushin' it.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mbparks on github.
  • I am mbparks (https://keybase.io/mbparks) on keybase.
  • I have a public key whose fingerprint is 1328 6920 CDDB 950A 1FAD E8BC D80B E36F B4B1 857F

To claim this, I am signing this object:

/**************************************************************************
File: OSER0001_RFID_ArduinoUnoFW
Author: mbparks
Date: 2SEP2019
Ver.: 0.0.2
License: MIT
This code is four gadget that can be used in an escape room .
It will activate a relay once all RFID tagged objects are placed
over the correct PN532 RFID readers.
Supports 1 through 4 RFID readers.
@mbparks
mbparks / 6and20DiceSim.py
Created July 31, 2017 00:53
Micropython code for Microbit, simulate a 6-sided die (Button A) and a 20-sided die (Button B)
import random
from microbit import *
sixSides = [
"1",
"2",
"3",
"4",
"5",
"6",
@mbparks
mbparks / TkServo.py
Created November 21, 2014 01:39
TkServo.py v0.4
############################################################################
#Program: TkServo.py
#Language: Python
#Date: 2014-10-31
#
#Description: Test app to understand I/O functionality of Phidgets.
#Program looks for a Phidget 8/8/8 interface kit and Advanced Servo kit.
#Reads an displays analog input 0 and contract a servo.
#Uses Tkinter to create rudimentary GUI
############################################################################
###########################################################################
#Program: TkServo.py
#Language: Python
#Date: 2014-10-31
#
#Description: Test app to understand I/O functionality of Phidgets.
#Program looks for a Phidget 8/8/8 interface kit and Advanced Servo kit.
#Reads an displays analog input 0 and contract a servo.
#Uses Tkinter to create rudimentary GUI
############################################################################
/* BT_Lights Demo App for Use With MIT App Inventor
This sketch is forked from a demo sketch written by Steve Chang
This demo code 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 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@mbparks
mbparks / WebPHPLightSensor.ino
Last active December 16, 2015 11:38
Supports system to provide web-viewable datalogging of sensor telemetry data from an Arduino. WebPHPLightSensor.ino handles the sensor interface and communication with web server.
#include <Ethernet.h>
#include <SPI.h>
const int sensorPin = 5;
int sensorReading = 0;
byte mac[] = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; // Edit with your Arduino Ethernet shield's MAC address
byte ip[] = {
192, 168, 1, 200 }; // Edit with your static IP address on network
@mbparks
mbparks / CatAndMouse.ino
Last active December 11, 2015 08:58
The Wiring code for the Arduino Esplora. Reads the Joystick X, Y, and Joystick Button. As well as the Up, Down, Left, and Right buttons. Then sets status to Processing sketch via Serial communication. Cat and Mouse is a two player game where my one player uses the Esplora and acts as the cat. The other user uses the computer's mouse and plays th…
//////////////////////////////////////////////
// CAT AND MOUSE GAME
// Author: Mike Parks
//
//////////////////////////////////////////////
// INCLUDE LIBRARIES
#include <Esplora.h>
// DECLARE GLOBAL VARIABLES
@mbparks
mbparks / ArduinoPachubeLightSensor.ino
Created February 26, 2012 00:54
Arduino and Pachube Light Sensor
/*
Pachube sensor client
This sketch connects an analog sensor to Pachube (http://www.pachube.com)
using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or
the Adafruit Ethernet shield, either one will work, as long as it's got
a Wiznet Ethernet module on board.
Circuit:
* Analog sensor attached to analog in 0
@mbparks
mbparks / spinStrobeLED
Created February 3, 2012 18:04
Propeller Assembly for LED Strobe
{strobe LEDs pin 16..19 on COG0 and scan pin 23..20 on COG1}
CON
_clkmode = xtal1 + pll16x 'Standard clock mode * crystal frequency = 80 MHz
_xinfreq = 5_000_000
PUB StrobeLEDs
cognew(@_StrobeLEDRight, 0)
cognew(@_StrobeLEDLeft, 0)