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: NHK2021_ikarashiSV_code NHK2021_ikarashiSV_code_withservo 2021NHK_B_syudo
ikarashiSV Class Reference
ikrashiSV More...
#include <ikarashiSV.h>
Public Member Functions | |
ikarashiSV (PinName pin_a, PinName pin_b, PinName pin_c, PinName pin_d) | |
コンストラクタ | |
void | add_state () |
使っても使わなくてもいいやつ | |
void | solenoid (int _state) |
大本命関数 | |
void | solenoid_show () |
電磁弁の状態を確認する関数 押していたらpushで、引いていたらpullです | |
int | state_show () |
使わなくてもいい(n回目) |
Detailed Description
ikrashiSV
電磁弁が動かせます
Definition at line 16 of file ikarashiSV.h.
Constructor & Destructor Documentation
ikarashiSV | ( | PinName | pin_a, |
PinName | pin_b, | ||
PinName | pin_c, | ||
PinName | pin_d | ||
) |
コンストラクタ
- Parameters:
-
pin_a 下の電磁弁 pin_b ↑同じ pin_c 上の電磁弁 pin_d ↑同じ
Definition at line 3 of file ikarashiSV.cpp.
Member Function Documentation
void add_state | ( | ) |
void solenoid | ( | int | _state ) |
大本命関数
_state = 1 ・・・ 投げる _state = 2 ・・・ 戻る _state = 0 ・・・ 開放
- Parameters:
-
_state 条件分岐用変数
Definition at line 15 of file ikarashiSV.cpp.
void solenoid_show | ( | ) |
電磁弁の状態を確認する関数 押していたらpushで、引いていたらpullです
Definition at line 42 of file ikarashiSV.cpp.
int state_show | ( | ) |
Generated on Sun Jul 17 2022 08:40:46 by
