unkounko

Dependencies:   mbed Servo

Committer:
niimurasyou
Date:
Mon Feb 25 05:48:20 2019 +0000
Revision:
11:88f17bc0724f
Parent:
1:e73cf2469f83
hhhhhhhhh

Who changed what in which revision?

UserRevisionLine numberNew contents of line
t_yamamoto 0:562021ed1ba9 1 #ifndef SWITCH_H_
t_yamamoto 0:562021ed1ba9 2 #define SWITCH_H_
t_yamamoto 0:562021ed1ba9 3
t_yamamoto 0:562021ed1ba9 4 #include "mbed.h"
t_yamamoto 0:562021ed1ba9 5
t_yamamoto 0:562021ed1ba9 6 extern DigitalIn limitSw[];
t_yamamoto 0:562021ed1ba9 7
t_yamamoto 0:562021ed1ba9 8 namespace SWITCH
t_yamamoto 0:562021ed1ba9 9 {
t_yamamoto 1:e73cf2469f83 10 #define LIMITSW0_PIN A7
t_yamamoto 1:e73cf2469f83 11 #define LIMITSW1_PIN A6
niimurasyou 11:88f17bc0724f 12 // #define LIMITSW2_PIN A5
niimurasyou 11:88f17bc0724f 13 // #define LIMITSW3_PIN A4
t_yamamoto 0:562021ed1ba9 14
niimurasyou 11:88f17bc0724f 15 #define MOUNTING_LIMITSW_NUM 2
t_yamamoto 0:562021ed1ba9 16
t_yamamoto 0:562021ed1ba9 17 class Switch
t_yamamoto 0:562021ed1ba9 18 {
t_yamamoto 0:562021ed1ba9 19 public:
t_yamamoto 0:562021ed1ba9 20 static void Initialize(void);
t_yamamoto 0:562021ed1ba9 21 static bool checkPushed(int mySwitch);
t_yamamoto 0:562021ed1ba9 22 };
t_yamamoto 0:562021ed1ba9 23 }
t_yamamoto 0:562021ed1ba9 24
t_yamamoto 0:562021ed1ba9 25 #endif