AllenNeuralDynamics / AllenNeuralDynamics/harp.device.lickety-split

Update examples w/ cleaner serial code

オープン
#49 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
4
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

We can simplify connecting to a device in all the examples with:

```python
import serial.tools.list_ports

# Open serial connection with the first Valve Controller.
com_port = None
ports = serial.tools.list_ports.comports()
for port, desc, hwid in sorted(ports):
if desc.startswith("lickety-split"):
print("{}: {} [{}]".format(port, desc, hwid))
com_port = port
break
device = Device(com_port)

```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。