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
/*-=-=-=-=-=-=-=-=-=-=-=- RCCL/RCI Notice of Copyright -=-=-=-=-=-=-=-=-=-=-* | |
* * | |
* Copyright (C) 1987, 1991 by John E. Lloyd and Vincent Hayward. * | |
* * | |
* Information on copyright permissions, as well as a complete * | |
* disclaimer of warranty, is given in the file COPYRIGHT. * | |
* * | |
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ | |
/*=~=~=~=~ McGill-Computer-Vision-and-Robotics-Laboratory--C-Module ~=~=~=~= |
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
// serial port <--> Motion Mind 3 latency test | |
import processing.serial.*; | |
Serial myPort; // The serial port | |
long myRet; | |
int inByte; | |
byte[] myOutString = { | |
// commands: READ REGISTER, Address (5), Register 17 (fw revision), checksum: | |
29, 5, 17, 51 | |
}; |
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
# Install a full version of Python 3.4. It'll end up | |
# in /Library/Frameworks. Install PySerial in there too. | |
# This code can then be run in Blender | |
import sys | |
sys.path.append("/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages”) | |
import serial | |
s = serial.Serial("/dev/tty_YOURPORTHERE",9600) | |
my_string = "hello" |
NewerOlder