This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |