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
import processing.serial.*; | |
Serial myPort; | |
int counter = 0; | |
float x, y, t; | |
int count = 0; |
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
import processing.serial.*; | |
Serial myPort; | |
float radius1 = random(100, 300); | |
float radius2 = random(100, 300); | |
int count =0; | |
float pos1 = random(200, width -200); | |
float pos2 = random(200, height -200); | |
float A = random(500, 1500); | |
int counter = 0; |
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
import processing.serial.*; | |
Serial myPort; | |
int radius = 300; | |
float angle = 0; | |
float angleStep = .001; | |
float r,s,p,q; | |
int rLimit1; | |
int rLimit2; |
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
void mouseClicked() { | |
if (modifierKey == 'c') { | |
println("C+mouse"); | |
} else if (modifierKey == 's') { | |
println("S+mouse"); | |
} | |
} | |
char modifierKey; | |
void keyPressed() { |
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
// Bezier curve to visualize for drawing on xy machine. | |
import processing.serial.*; | |
Serial myPort; | |
float a,b,c,d,e,f,g,h; | |
float aa,bb,cc,dd,ee,ff,gg,hh; | |
String val; | |
boolean firstContact = false; | |
int end = 10; |
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<AccelStepper.h> | |
#include <MultiStepper.h> | |
#include <Servo.h> | |
MultiStepper steppers; | |
AccelStepper stepper1(1, 2, 3); | |
AccelStepper stepper2(1, 10, 11); | |
AccelStepper stepper3(1, 5, 6); | |
int spiralRatioCount = 0; |
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<AccelStepper.h> | |
#include <MultiStepper.h> | |
#include <Servo.h> | |
#include <Rotary.h> | |
#include <Wire.h> | |
Servo servo1; |