nayakajit87
Member level 5
Dear all
I have digital IO which reads high(1) or LOW(0). I have created char buf which read the 1 byte of data thats 8 bits
Currently i am moving my data like this .Where i store the values like this
need simple code where i could able to move 0A into Buffer that buffer value to be move to ser_data[]
ser_data[3]=0X0A;
ser_data[4]=0XFF;
ser_data[5]=0XA0;
ser_data[6]=0XFF;
0A means -> 8 digital Io -> 0000 1010 this is value it read.This might change Io pin state changes. SImple code to move bit value to array to form byte
I have digital IO which reads high(1) or LOW(0). I have created char buf which read the 1 byte of data thats 8 bits
Currently i am moving my data like this .Where i store the values like this
need simple code where i could able to move 0A into Buffer that buffer value to be move to ser_data[]
ser_data[3]=0X0A;
ser_data[4]=0XFF;
ser_data[5]=0XA0;
ser_data[6]=0XFF;
0A means -> 8 digital Io -> 0000 1010 this is value it read.This might change Io pin state changes. SImple code to move bit value to array to form byte