Commits

Takayuki KONDO committed 8b8cf61

pyserial: comhello サンプル追加

  • Participants
  • Parent commits d6fdadb

Comments (0)

Files changed (1)

File py/serial/comhello.py

+#!/usr/bin/env python
+from serial import Serial
+
+com = Serial(
+    port=13,
+    baudrate=115200,
+    bytesize=8,
+    parity='N',
+    stopbits=1,
+    timeout=None,
+    )
+
+msg="hello world!\r\n"
+
+print com.portstr
+com.write(msg)
+com.close()