void set_PinMode() | void set_PinMode() | ||||
{ | { | ||||
//set all pins to OUTPUT | |||||
pinMode(TAC1, OUTPUT); | pinMode(TAC1, OUTPUT); | ||||
pinMode(TAC2, OUTPUT); | pinMode(TAC2, OUTPUT); | ||||
pinMode(TAC3, OUTPUT); | pinMode(TAC3, OUTPUT); | ||||
pinMode(TAC4, OUTPUT); | pinMode(TAC4, OUTPUT); | ||||
pinMode(TAC5, OUTPUT); | pinMode(TAC5, OUTPUT); | ||||
pinMode(TAC6, OUTPUT); | pinMode(TAC6, OUTPUT); | ||||
//reserve | |||||
pinMode(TAC7, OUTPUT); | pinMode(TAC7, OUTPUT); | ||||
pinMode(TAC8, OUTPUT); | pinMode(TAC8, OUTPUT); | ||||
pinMode(TAC9, OUTPUT); | pinMode(TAC9, OUTPUT); | ||||
void set_AllLow() | void set_AllLow() | ||||
{ | { | ||||
//set all pins to LOW | |||||
digitalWrite(TAC1, LOW); | digitalWrite(TAC1, LOW); | ||||
digitalWrite(TAC2, LOW); | digitalWrite(TAC2, LOW); | ||||
digitalWrite(TAC3, LOW); | digitalWrite(TAC3, LOW); | ||||
digitalWrite(TAC4, LOW); | digitalWrite(TAC4, LOW); | ||||
digitalWrite(TAC5, LOW); | digitalWrite(TAC5, LOW); | ||||
digitalWrite(TAC6, LOW); | digitalWrite(TAC6, LOW); | ||||
//reserve | |||||
digitalWrite(TAC7, LOW); | digitalWrite(TAC7, LOW); | ||||
digitalWrite(TAC8, LOW); | digitalWrite(TAC8, LOW); | ||||
digitalWrite(TAC9, LOW); | digitalWrite(TAC9, LOW); |