Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Finally it works. Here is the full code
unsigned char keyin_char[5];
unsigned char keyin_string[6];
int i;
for(x=0;x<6;x++){
keyin_string[i]=keyin_char[i];
}
keyin_string[5]='\0';
Thanks again guys
I want to convert the array here
unsigned char keyin_char[6];
to string first before I send it through UART.
For example,
unsigned char keyin_char[6]={'1','2','3','4','5','6'};
//then how to convert to 123456 and then send via UART?
I tried multiple references from other forum but it did...
Hello guys. Thank for stopping by here.
I made a PC based door lock keypad project. From the keypad, each key press will store a char to an array. After that, I want to convert the char array to string. The string will be send to PC to compare with the database there. The problem here is I cant...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.