LoginSignup
1
0

More than 1 year has passed since last update.

Pixoo64のREST APIを使ってみた③

Posted at

前回から引き続きPixoo64のAPIの説明です。

tool(ツール)

Set Countdown tool

タイマーのツールを起動するAPIです。
分と秒、ステータス(1:開始、0:停止)をセットします。

リクエスト
{
  "Command": "Tools/SetTimer",
  "Minute": 3,
  "Second": 0,
  "Status": 1
}

爆弾アニメーションのタイマーが開始されます。
00:00になると爆発アニメーションが流れ、ピピッ、ピピッ、っと電子音が鳴ります。
カップラーメンや休憩時間などのタイマーとして使えます。
tool_1.jpeg

Set stopwatch tool

経過時間を計測するツールを起動するAPIです。
ステータス(1:開始、0:停止、2:リセット)をセットします。

リクエスト
{
  "Command": "Tools/SetStopWatch",
  "Status": 1
}

秒単位で経過時間を数えます。
ひよこのアニメーションで経過時間を表示します。
tool_2.jpeg

Set scorebord tool

スコアボードを起動するAPIです。
青のスコアと赤のスコアを設定します。

リクエスト
{
  "Command": "Tools/SetScoreBoard",
  "BlueScore": 357,
  "RedScore": 123
}

上下に赤と青のスコアが表示されます。
あまり使い道がないような・・・
tool_3.jpeg

Set noise tool

騒音計測を起動するAPIです。
ノイズステータス(1:開始、2:終了)を指定できます。

リクエスト
{
  "Command": "Tools/SetNoiseStatus",
  "NoiseStatus": 1
}

スペクトルみたいなアニメーションがありますが、周波数や音の大きさとは関係ありません。
騒音が気になるときにどうぞ。
tool_4.jpeg

以上、toolのAPIでした。
次回はいよいよアニメーション機能です。

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