Parallel <--> Byte value


high,
i've 8 pins digital input , 8 other pins digital output.
for example:
byte in_pins={22,23,24,25,26,27,28,29};
byte out_pins={30,31,32,33,34,35,36,37};
a) how convert quick possible value defined 8  input pins byte value?
b) how convert byte value quick possible output pins?

thanks!

do pin state bytes need stored or transferred?
if transferred :

code: [select]

for(int n = 0; n < 8; n++)
{
digitalwrite(out_pins[n], digitalread(in_pins[0]));
}





Arduino Forum > Products > Arduino Due (Moderator: fabioc84) > Parallel <--> Byte value


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support