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
// Wire Master Writer | |
// by Nicholas Zambetti <http://www.zambetti.com> | |
// Demonstrates use of the Wire library | |
// Writes data to an I2C/TWI slave device | |
// Refer to the "Wire Slave Receiver" example for use with this | |
// Created 29 March 2006 | |
// This example code is in the public domain. |
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
// Wire Slave Receiver | |
// by Nicholas Zambetti <http://www.zambetti.com> | |
// Demonstrates use of the Wire library | |
// Receives data as an I2C/TWI slave device | |
// Refer to the "Wire Master Writer" example for use with this | |
// Created 29 March 2006 | |
// This example code is in the public domain. |
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
#include <SoftwareSerial.h> | |
SoftwareSerial rfid(3, 2); | |
//Prototypes | |
void check_for_notag(void); | |
void halt(void); | |
void parse(void); | |
void print_serial(void); | |
void read_serial(void); |
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
/* | |
FabAcademy 2016 - Borja Javier Lanza Lopez | |
FabLab León 2016 - Instructor Nuria Robles | |
Serial to DmxDuino | |
*/ | |
//Variables | |
int incomingByte; |
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
using UnityEngine; | |
using System.Collections; | |
using System.IO.Ports; | |
using System; | |
using System.Threading; | |
public class Serial : MonoBehaviour { | |
public SerialPort sp; | |
public int bytes; |
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
using UnityEngine; | |
using System.Collections; | |
using System.IO.Ports; | |
using System.Text; | |
using System.Threading; | |
public class changeMesh : MonoBehaviour { | |
public GameObject MyMainGameObject; | |
public GameObject[] arrayGM = new GameObject[4]; |
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
//-------------------------------------------------------------- | |
void ofApp::cambiarMatrizOSC(string layer1, string layer2, string layer3){ | |
ofxOscMessage m; | |
m.setAddress("/sources/1video/clip"); | |
m.addStringArg(layer1); | |
oscSender.sendMessage(m); | |
ofxOscMessage m1; | |
m1.setAddress("/sources/2video/clip"); |
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
void ofApp::leerSerial(){ | |
// The serial device can throw exeptions. | |
try | |
{ | |
// Read all bytes from the device; | |
uint8_t buffer[16]; | |
while (device.available() > 0) |
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
// Funcion | |
void ofApp::compararSerial(){ | |
//3DPrint | |
if (mensaje[0]=='b') { | |
cambiarMatrizOSC("chess.jpg", "prisme.mov","mkb2.png"); | |
//img_Selection.load("img/mkb2.png"); | |
dmxduino.writeByte(97); |