UdonLibrary 1.0.0
機械システム研究部 C++ ライブラリ
読み取り中…
検索中…
一致する文字列を見つけられません
Switch.hpp
[詳解]
1//
2// 通信用メッセージ
3//
4// Copyright (c) 2022-2024 udonrobo
5//
6
7#pragma once
8
10
11namespace Udon
12{
13
14 namespace Message
15 {
16
18 struct Switch
19 {
20
22 bool press;
23
24#ifdef ARDUINO
26 void show() const
27 {
28 Serial.print(press ? F("press") : F("not press"));
29 Serial.print('\t');
30 }
31#endif
32
34 };
35
36 } // namespace Message
37
38} // namespace Udon
#define F(x)
Definition Show.hpp:17
Definition Bit.hpp:12
スイッチ
Definition Switch.hpp:19
bool press
ボタンが押されているか
Definition Switch.hpp:22