Skip to content

Instantly share code, notes, and snippets.

Troy Denton trdenton

View GitHub Profile
View modified_hough_circles.cpp
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,
// copy or use the software.
//
//
// License Agreement
View detect_person.py
#!/usr/bin/python
import time
import subprocess
import signal
import logging
from range_sensor import RangeSensor
from graceful_kill import GracefulKiller
@trdenton
trdenton / write_name.ino
Created Sep 12, 2016
re-writing an EEPROM to control the bluetooth name
View write_name.ino
#include <Wire.h>
#define disk1 0x50 //Address of 24LC256 eeprom chip
void setup(void)
{
Serial.begin(9600);
Wire.begin();
unsigned int address = 0x3571;
@trdenton
trdenton / find_keys.ino
Created Sep 12, 2016
looking through an eeprom for a known sequence, "AB"
View find_keys.ino
#include <Wire.h>
#define disk1 0x50 //Address of 24LC256 eeprom chip
void setup(void)
{
Serial.begin(9600);
Wire.begin();
unsigned int address = 0x3571;
@trdenton
trdenton / memread.py
Created Sep 12, 2016
read a saleae file, analyze its memory activity, reconstruct a binary image
View memread.py
#!/usr/bin/python
import sys
from enum import Enum
f = open(sys.argv[1])
lines = f.readlines()
@trdenton
trdenton / gist:d60e27cd24c762acce53bec120386248
Created Sep 10, 2016
convert a list of decimal numbers into a binary file
View gist:d60e27cd24c762acce53bec120386248
#!/usr/bin/python
import sys
f = open(sys.argv[1])
lines = f.readlines()
@trdenton
trdenton / bluetooth.sh
Created Jan 18, 2016
script to stop bluetooth
View bluetooth.sh
#!/bin/bash
sudo /usr/sbin/service bluetooth stop
You can’t perform that action at this time.