close-circle
Close

Processing Process

A project log for Flashing Light Prize (5) IoT Pacing

Stress Shd Be More Stressful

Vije Miller 07/21/2017 at 02:380 Comments
// Flashing Light Prize (5) IoT Pacing
// Processing to Bluetooth
// VijeMiller
import processing.serial.*;
Serial port;
void setup() {
  println(Serial.list()); 
  port = new Serial(this, "COM3", 9600);
  frameRate(4);
}
void draw() {
  // Internet Address .txt File
  String onoroff[] = loadStrings("http://website.com/flp/flp.txt");
  // Prints .txt File Contents
  print(onoroff[0]);
  if (onoroff[0].equals("1") == true) {
    println("Flash");
    port.write('F');
  } else if (onoroff[0].equals("0") == true) {
    println("Unflash");
    port.write('U');
  } else {
  }
}

Discussions