hi everyone..
i need your help and i'll thankful for you all
hw can i conver decimal number (int) into binary and send every single bit throw pins i choose it
please help ..i am waiting
hi everyone..
i need your help and i'll thankful for you all
hw can i conver decimal number (int) into binary and send every single bit throw pins i choose it
please help ..i am waiting
i want to enter an decimal number then the arduino conver it to binary and each digit of binary send to one bin
for example:
i enter 30
so arduino convert it to 11110
after that
1 to pin x
1 to pin y
1 to pin z
1 to pin a
0 to pin b.
Depending on which pins you are using, you may be able to use port manipulation.
The other way would be to use an array to store the pin numbers, a for loop to go through each pin in the array and bit shifting and masking to get the state of each pin.