Skip to content

Instantly share code, notes, and snippets.

View mjbella's full-sized avatar

Michael Bella mjbella

  • San Jose, CA
View GitHub Profile
@mjbella
mjbella / ESP8266_goertzel_painlessMesh.ino
Last active June 25, 2017 21:16
Basic ESP8266 blinkness using painlessMesh
//************************************************************
// this is a simple example that uses the painlessMesh library
//
// 1. sends a silly message to every node on the mesh at a random time betweew 1 and 5 seconds
// 2. prints anything it recieves to Serial.print
//
// prerequisites
// - Arduino JSON https://github.com/bblanchon/ArduinoJson
//
//
@mjbella
mjbella / Parse_Dynamixel_SerialData
Last active February 12, 2017 23:36
Parse the Dynamixel packets out of the csv from Seleae serial analyzer
#!/usr/bin/env python
import sys
import os
import csv
state = 0
count = 0
output = []
@mjbella
mjbella / toBCD.s43
Last active December 16, 2015 11:18
Decimal Add on the MSP430
NAME toBCD
PUBLIC toBCD
RSEG CODE
toBCD MOV #16, R15 ; Loop Counter
MOV R12, R14 ; Move the input to R14 so we can use R12 for our output
CLR R12 ; Clear our output register
L$1 RLA R14 ; Binary MSB to carry
DADD R12,R12 ; Decimal Acc into R12