简体   繁体   English

使用C#将文本发送到Arduino LCD显示器

[英]Send text to an Arduino LCD display with C#

So, I am trying to send a simple text through my c# application to an arduino with an LCD display, but I have no idea I can I do that. 所以,我试图通过我的c#应用程序将一个简单的文本发送到带有LCD显示屏的arduino,但我不知道我能做到这一点。 Do you have something to help me? 你有什么可以帮助我吗?

stage 1: "I have no idea I can do that" 第一阶段:“我不知道我能做到”

response 1: http://stigern.net/blog/tutorial-c-communicating-with-arduino-over-serial/#codesyntax_1 回复1: http//stigern.net/blog/tutorial-c-communicating-with-arduino-over-serial/#codesyntax_1

stage 2: "That is not really what I am looking for..I want to send a text and display it" 第二阶段:“那不是我真正想要的......我想发一个文字并展示它”

At least you should admit that you now got an idea how ac# program could talk to an Arduino in general. 至少你应该承认你现在知道ac#program一般可以和Arduino交谈。

Using a text instead of transmitting a binary value shouldn't be too hard, or is that your issue? 使用文本而不是传输二进制值不应该太难,或者是你的问题?

Text instead of binary has the advantage, that both sides are more independent. 文本而不是二进制具有优势,双方更独立。 Instead of ac# application, you might use Arduino SerialMonitor to send some text. 您可以使用Arduino SerialMonitor发送一些文本,而不是ac#应用程序。 Thus you can concentrate on the Arduino side first. 因此,您可以首先专注于Arduino方面。

Another hint: use NewLine '\\n' as a control character: Can't be displayed on the LCD anyway, and SerialMonitor can be configured to append it automatically when you submit a line: a natural choice for an end-of-message marker. 另一个提示:使用NewLine'\\ n'作为控制字符:无论如何都无法在LCD上显示,并且SerialMonitor可以配置为在提交行时自动附加它:消息结束标记的自然选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM