hi
how can i read formatted input from standard input( instead of scanf )what function can i use to read
hi
how can i read formatted input from standard input( instead of scanf )what function can i use to read
Exactly the same as you'd do it on any other microcontroller!
You'd need low-level functions to send a character to the UART, and receive a character from a UART. Those are the only parts that are specific to the particular microcontroller.
Above that, you're just handling characters & strings.
The general term is "retargetting" (or "retargeting")
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__retarget.html
https://www.keil.com/pack/doc/compiler/RetargetIO/html/index.html
http://robotics.mcmanis.com/articles/20140623_retargeting-libc.html
i want to do the similar thing in nordic using termite
char ch[80]; int n; int array[3] ={peripheral 1 ,peripheral 2,peripheral 3}; printf ("enter the peripheral number whom you want to send the msg"); scanf("%d", n); printf("enter the message you want to send"); scanf("%s", ch);
using termite
Again, termite is irrelevant - as far as the Nordic chip is concerned, it's just about bytes sent & received via the UART.
See above post about "retargetting" (or "retargeting")
using termite mean uart .
how to do that ?