12/24/2015

IchigoJam BASIC UART input ver1.1


IchigoJam : Try to communicate with other device.

BPS can be set by BPS command.

UART Output command        TXD pin

Use "PRINT" same as for the screen.

Note;
ESC and DLE codes can't be included in the input data. beause...
ESC: Holt program
DLE:Erase text in the line

UART Input command       RXD pin

Use INKEY() as for Keyboard
 
・キーボードから入力された文字と同じように処理される。
・プログラムではINKEY()関数で入力する。受信なし時は0。
 
K=INKEY()

 
・ESCコード(27 0x1B)を受けるとプログラムを停止する。
Receiving #1B     Holt the program
 
・DLEコード(16 0x10)を受けると同じ行の文字を消す。
Receiving #10      Delete  the text in line





 ライセンス・著作権表示
CC BY (C) 2015 国野亘 (Wataru KUNINO)
 

0 件のコメント:

コメントを投稿