Skip to content

Instantly share code, notes, and snippets.

View adoyle's full-sized avatar

Allan Doyle adoyle

View GitHub Profile
@adoyle
adoyle / robotControl.py
Created November 5, 2014 18:59
serves up foo.html and provides simple tests of motor control
from flask import Flask, render_template, request
import math, os, time, serial, time
import RPi.GPIO as GPIO
# initialize serial port
port = serial.Serial("/dev/ttyAMA0", baudrate=19200, timeout=3.0)
# wait 2 seconds
#time.sleep(2)