//For Hiraoka //ShockSensor & Solenoid & Motor //2009.7.21 //PinAssign int SOLENOID=11; int SWITCH=12; int SHOCK=14; //StepMotorPin int ST_X1=2; int ST_X2=4; int ST_Y1=3; int ST_Y2=5; //Tsumami int Pot=5; //Value #define MAX 100 int rythm_cnt=0; int rythm[MAX]; int dly; int MotorCnt; //Setup void setup(){ pinMode(SOLENOID,OUTPUT); pinMode(SHOCK,INPUT); pinMode(SWITCH,INPUT); pinMode(ST_X1, OUTPUT)
{{#tags}}- {{label}}
{{/tags}}