I'm using Adafruit 16-Channel 12-bit PWM/Servo Shield with Arduino Uno controller
In setup()
I have a number of default positions with PWM commands for motors with plug of USB to PC and turning on
I'm trying to figure out, how to avoid setup()
commands, or any other signals during process to servos, in case if shield is not powered from power adapter, which is 6V 8Amp in my case, to not send signal to servo while it is not powered by power supply
value = digitalRead(pin_number)
. Youc an then do whatever you want with this, for exmple check in an if statement, if the result isHIGH
orLOW
by doingif(value){...} else {...}
. I don't know, what I should write there in my answer.