v01
Diff: TM_Button_Sensor.cpp
- Revision:
- 0:dd6924abf791
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TM_Button_Sensor.cpp Sat May 24 07:27:45 2014 +0000 @@ -0,0 +1,24 @@ +#include "TM_Button_Sensor.h" +#include "mbed.h" + +//::は「の」の意味。:はコンストラクタの初期化をしているらしい。 +//下記の意味は +//Pwmout somename(p11); +//somename=1; +//と同じ意味TM + +TM_Button_Sensor::TM_Button_Sensor_obj(PinName pin) : TM_Button_pins(pin) +{ + TM_Button_pins= 0; +} + + +void TM_LED_Controller::ON() +{ + TM_LED_pins = 1.0f; +} + +void TM_LED_Controller::OFF() +{ + TM_LED_pins = 0; +}