This file contains hidden or 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
; CIS-261 | |
; Here is a song to past in d=4,o=5,b=250:e,8p,8f,8g,8p,1c6,8p.,d,8p,8e,1f,p.,g,8p,8a,8b,8p,1f6,p,a,8p,8b,2c6,2d6,2e6,e,8p,8f,8g,8p,1c6,p,d6,8p,8e6,1f.6,g,8p,8g,e.6,8p,d6,8p,8g,e.6,8p,d6,8p,8g,f.6,8p,e6,8p,8d6,2c6,q | |
; 'Indiana Jones' | |
; Some code taken from Lab M09 demo program: make_beeps.asm | |
; Lab M09, http://www.c-jump.com/bcc/c261c/MLabs/M09arrays/lecture.html Data Arrays and Windows API Calls | |
; | |
; Reference http://www.benchmark-companies.com/electronics/elt265/handouts/wam_ch8.pdf | |
; Reference https://github.com/ponty/arduino-rtttl-player/blob/master/rtttl/rtttl.h |
This file contains hidden or 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
#!/usr/bin/python | |
import sys | |
import logging | |
logging.basicConfig(stream=sys.stderr) | |
sys.path.insert(0,"/var/www/Ironworks/") | |
from Ironworks import app as application | |
application.secret_key = 'This is my secret - get your own' |
This file contains hidden or 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
#**REMEMBER TO SAVE A BACK-UP OF THE ORIGINAL 000-default.conf!!! | |
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. |
This file contains hidden or 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
/* | |
created August 2011 | |
by SMStrauch and with help of robtillaart and ulrichard. Thanks! | |
Manufacturer: www.intersema.ch | |
Source: http://www.meas-spec.com/downloads/Using_SPI_Protocol_with_Pressure_Sensor_Modules.pdf | |
Source: http://forum.arduino.cc/index.php?topic=67188.0 | |
Datasheet: http://media.digikey.com/pdf/Data%20Sheets/Measurement%20Specialties%20PDFs/MS5541-CM.pdf | |
Modified 2-10-2015 J.Brian |
This file contains hidden or 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
/* | |
MS5541 Pressure Sensor calwords readout | |
This program will read your MS5441 or compatible pressure sensor every 5 seconds and show you the calibration words, the calibration factors, | |
the raw values and the compensated values of temperature and pressure. | |
Once you read out the calibration factors you can define them in the header of any sketch you write for the sensor. | |
Pins: | |
MS5541 sensor attached to pins 10 - 13: | |
MOSI: pin 11 |
This file contains hidden or 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
/*************************************************************************************************************** | |
* Razor AHRS Firmware v1.4.2 | |
* 9 Degree of Measurement Attitude and Heading Reference System | |
* for Sparkfun "9DOF Razor IMU" (SEN-10125 and SEN-10736) | |
* and "9DOF Sensor Stick" (SEN-10183, 10321 and SEN-10724) | |
* | |
* Released under GNU GPL (General Public License) v3.0 | |
* Copyright (C) 2013 Peter Bartz [http://ptrbrtz.net] | |
* Copyright (C) 2011-2012 Quality & Usability Lab, Deutsche Telekom Laboratories, TU Berlin |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# J.Brian 1-22-2015 | |
import Adafruit_BBIO.UART as uart | |
import socket | |
import serial | |
import threading | |
import ast | |
import time | |
from random import randint |
This file contains hidden or 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
For this program I highly recommend the use of 'Guake', additionally for proper display I recommend Opera beta on a 64bit ubuntu install | |
http://www.opera.com/computer/beta | |
sudo apt-get install guake | |
start guake press F12 for terminal window | |
sudo apt-get install build-essential python-dev python-setuptools python-pip |
This file contains hidden or 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
//J.Brian 1-22-2015 | |
// inputString format: | |
// vert, port, stbd, aux1, aux2, aux3 | |
#include <SerialBuffer.h> | |
// change this to Serial1 etc if you're using an Arduino Mega | |
#define SERIAL_PORT Serial | |
#define BUFFER_SIZE 64 |
This file contains hidden or 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
//J.Brian 1-22-2015 | |
// inputString format: | |
// vert, port, stbd, aux1, aux2, aux3 | |
// Control -> Forward: | |
// DIO 4, PWM 5 -> Forward | |
// DIO 2, PWM 3 -> Reverse | |
// Slave Control 1 -> Vert: | |
// DIO 7, PWM 6 -> Up |
NewerOlder