Skip to content

Instantly share code, notes, and snippets.

@jreisstudio
jreisstudio / PythonArduino.py
Created January 11, 2013 01:28
Python + Arduino on/off the LED.
import serial # you need to install the pySerial :pyserial.sourceforge.net
import time
# your Serial port should be different!
arduino = serial.Serial('/dev/tty.usbmodem1411', 9600)
def onOffFunction():
command = raw_input("Type something..: (on/ off / bye )");
if command =="on":
print "The LED is on..."
time.sleep(1)
@jeremyckahn
jeremyckahn / build_rpi_kernel.sh
Created July 24, 2012 04:32
A script to build the Raspberry Pi kernel.
#!/bin/bash
# For Ubuntu.
# Cobbled together from:
# http://elinux.org/RPi_Kernel_Compilation
# http://mitchtech.net/raspberry-pi-kernel-compile/
# Assumes you already have https://github.com/raspberrypi/linux cloned at ~/rpi
cd ~/rpi/linux