initalizing ouput as low?


is there way declare pin ouput , write low @ same time? i'm witing code control relay , when arduino first starts sets pin 4 ouput , writes low, activating relay second or two. need way both @ same time relay wont activate till need to. thanks

you try setting pin low in input mode , switching output mode when want activate relay.  i have not tried should work.
make sure relay not drawing more  curren pin can provide (40ma)


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > initalizing ouput as low?


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums