v01
TM_Button_Sensor.h@0:dd6924abf791, 2014-05-24 (annotated)
- Committer:
- samtoshi
- Date:
- Sat May 24 07:27:45 2014 +0000
- Revision:
- 0:dd6924abf791
TM_Button_sensor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
samtoshi | 0:dd6924abf791 | 1 | #ifndef INCLUDED_TM_Button_Sensor_H |
samtoshi | 0:dd6924abf791 | 2 | #define INCLUDED_TM_BUtton_Sensor_H |
samtoshi | 0:dd6924abf791 | 3 | |
samtoshi | 0:dd6924abf791 | 4 | #include "mbed.h" |
samtoshi | 0:dd6924abf791 | 5 | |
samtoshi | 0:dd6924abf791 | 6 | class TM_Button_Sensor |
samtoshi | 0:dd6924abf791 | 7 | { |
samtoshi | 0:dd6924abf791 | 8 | |
samtoshi | 0:dd6924abf791 | 9 | private: |
samtoshi | 0:dd6924abf791 | 10 | DigitalIn TM_Button_pins; |
samtoshi | 0:dd6924abf791 | 11 | |
samtoshi | 0:dd6924abf791 | 12 | //これはLED(p19);のように使う。 |
samtoshi | 0:dd6924abf791 | 13 | public: |
samtoshi | 0:dd6924abf791 | 14 | TM_Button_Sensor_obj(PinName pin); |
samtoshi | 0:dd6924abf791 | 15 | |
samtoshi | 0:dd6924abf791 | 16 | void ON(); |
samtoshi | 0:dd6924abf791 | 17 | void OFF(); |
samtoshi | 0:dd6924abf791 | 18 | |
samtoshi | 0:dd6924abf791 | 19 | }; |
samtoshi | 0:dd6924abf791 | 20 | |
samtoshi | 0:dd6924abf791 | 21 | #endif |