unkounko

Dependencies:   mbed Servo

Committer:
t_yamamoto
Date:
Tue Jan 16 08:47:01 2018 +0000
Revision:
1:e73cf2469f83
Parent:
0:562021ed1ba9
Child:
11:88f17bc0724f
release version;

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
t_yamamoto 1:e73cf2469f83 12 #define LIMITSW2_PIN A5
t_yamamoto 1:e73cf2469f83 13 #define LIMITSW3_PIN A4
t_yamamoto 0:562021ed1ba9 14
t_yamamoto 1:e73cf2469f83 15 #define MOUNTING_LIMITSW_NUM 4
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