How do I read data from the terminal using DB:ConsoleIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I read data from the terminal using DB:ConsoleIO

384 Views
jacewalton
Contributor III

I am using DB:ConsoleIO which has an IO1:Serial_LDD component in it and was wondering of there is a getchar funciton or a way to read data from the terminal. thanks

0 Kudos
1 Reply

304 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Jace Walton,

   You can use the scanf, getchar, ect.

   Take getchar as an example:

pastedImage_1.png

More useful functions, you can find it from the stdio.h.

pastedImage_2.png

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos