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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,167 次查看
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 项奖励
回复
1 回复

1,087 次查看
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 项奖励
回复