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
int sensorPin = A0; | |
int val = 0; | |
int ledPin = 13; | |
int sensorValue = 0; | |
float times = 0; | |
int send; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(2, INPUT); |
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
int sensorPin = A0; | |
int val = 0; | |
int ledPin = 13; | |
int sensorValue = 0; | |
float times = 0; | |
int send; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(2, INPUT); |
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 i = 0; //counter for dummyClock | |
int j = 0; //counter for dummyTIme | |
int p_j = 0; | |
float r = 25;//chushinsen no hankei | |
int setm = 15; //target minute | |
int value = 0; //starting flag | |
float span = 0; //continued time |
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
int sig = 0; | |
int led = -1; | |
int spd=255; //1~255の値にする | |
void setup(){ | |
Serial.begin(4800); | |
pinMode(2,OUTPUT);//左モーター用ドライバピン | |
pinMode(4,OUTPUT);//左モーター用ドライバピン | |
pinMode(7,OUTPUT); //右モーター用ドライバピン | |
pinMode(8,OUTPUT); //右モーター用ドライバピン |