aa

Dependencies:   mbed

Input/Switch/Switch.cpp

Committer:
niimurasyou
Date:
2020-01-25
Revision:
1:e1e9671724e7
Parent:
0:2e7a61458dc3

File content as of revision 1:e1e9671724e7:

#include "Switch.h"
#include <stdint.h>

//DigitalIn limitSw[] = {
//    DigitalIn(LIMITSW0_PIN),
//    DigitalIn(LIMITSW1_PIN),
//    DigitalIn(LIMITSW2_PIN),
//    DigitalIn(LIMITSW3_PIN),
//};
//
//namespace SWITCH 
//{
//    void Switch::Initialize(void){
//        for(int i = 0 ; i < MOUNTING_LIMITSW_NUM; i++){
//            limitSw[i].mode(PullUp);
//        }
//    }
//    
//    bool Switch::CheckPushed(int SwitchNumber){
//        return SwitchNumber ? false : true ;
//    }
//}