LoginSignup
0
1

More than 5 years have passed since last update.

Processing / ControlP5 > uartSender (v0.3, v0.4) > amplitudeとinterval用のスライダ実装

Last updated at Posted at 2016-07-21
動作環境
Processing 3.1.1 on Windows 8.1 pro(64bit)
Library: ControlP5 v2.2.6
Library: Serial

シリアル通信の接続先にダミーデータを送るプログラム実装の続き。

関連 http://qiita.com/7of9/items/8f0c47caf69b0571d6dc

code

v0.4 @ github

以下の実装をした

  • v0.3
    • COMポート選択をslider/Button使用をやめて、ScrollableList使用に変更した
  • v0.4
    • ダミーデータであるsine curveのamplitude選択用sliderを追加
    • sine curveの周期(秒)選択用sliderを追加

実行例

qiita.png

  • 縦方向のスライダ4つは4項目のデータのamplitudeを選択できる
  • 横方向のスライダ1つは全項目の周期(秒)を選択できる
    • 例では78.74秒

通信の反対側では以下のような受信となる。

qiita.png

0
1
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
1