Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 17robo_fuzi 17robo_tokyo_kaede
cyclic_io.h
00001 /* 00002 * [CyclicIo] 00003 * **任意の0/1状態(sbdbtのボタン)を受け渡すことで、指定のIOをサイクリックする 00004 * 00005 * [Public Member Functions] 00006 * CyclicIo(PinName pin) 00007 * **<Create> 宣言 00008 * 00009 * cyclic(<int> state) 00010 * **<int> (ボタン等の)0/1で状態を入力 00011 * 00012 * getState() 00013 * **<int> サイクリックの状態を出力 00014 */ 00015 00016 #ifndef MBED_CYCLIC_IO_H 00017 #define MBED_CYCLIC_IO_H 00018 00019 #include "mbed.h" 00020 00021 class CyclicIo 00022 { 00023 public: 00024 CyclicIo(PinName pin); 00025 void cyclic(int state); 00026 int getState(); 00027 void cyclicOn(); 00028 void cyclicOff(); 00029 00030 private: 00031 DigitalOut gpio; 00032 bool flag; 00033 }; 00034 00035 #endif
Generated on Tue Jul 12 2022 22:18:57 by
