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
var sound; | |
var slider1; | |
var toggle; | |
var center1; | |
var center2; | |
var soundColor; | |
var d; | |
function setup() { | |
createCanvas(500, 500); |
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
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
int ledPin = 9; | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) |
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
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) | |
int myNetwork = 147; // radios must share the same network (0-255) | |
int myID = 1; // radios should be given unique ID's (0-254, 255 = BROADCAST) | |
int hubID = 0; // the receiver for all sensor nodes in this example |
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
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) | |
int myNetwork = 147; // radios must share the same network (0-255) | |
int myID = 1; // radios should be given unique ID's (0-254, 255 = BROADCAST) | |
int hubID = 0; // the receiver for all sensor nodes in this example |
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
#include <RFM69.h> | |
#include <SPI.h> // the RFM69 library uses SPI | |
int ledPin = 9; | |
RFM69 radio; | |
#define myFrequency RF69_915MHZ // or RF69_433MHZ (check your radio) |
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 variables | |
var serial; // variable to hold an instance of the serialport library | |
var portName = "/dev/cu.usbmodem1421"; // fill in your serial port name here | |
// sensor variables | |
var lineBegin = 0; | |
var button1 = 0; | |
var button2 = 0; | |
OlderNewer