0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

smallbasicでRS232C

Last updated at Posted at 2015-05-11

シリアル

rs232cです。
エクステンションが必要です。
エクステンションは、LitDevがあります。
このコードは、自前のエクステンションです。

コード

class1.OpenPort("COM5", 9600)
TextWindow.WriteLine(">open com5")
while a <> "H"
  a = TextWindow.readkey()
  class1.TXString(a)
  Program.Delay(100)
  s = Class1.RXAll()
  TextWindow.WriteLine(s)
endwhile
TextWindow.WriteLine(">end")
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?