12345678910111213141516171819202122 |
- /*******************************************************************
- Description:Functions for various sensor types.
- Author: www.corvin.cn
- History: 20180209: init this file;
- ********************************************************************/
- #ifndef __SENSORS_H__
- #define __SENSORS_H__
- static const int PowerContro_PIN = 52; //Mosfet Power controller sensor pin
- static const int alarm_powerControl_pin = 51; //alarm light powercontrol sensor pin
- void initSensors()
- {
- pinMode(PowerContro_PIN, OUTPUT);
- digitalWrite(PowerContro_PIN, HIGH); //default enable Power controller
- pinMode(alarm_powerControl_pin, OUTPUT);
- digitalWrite(alarm_powerControl_pin, LOW); //default disable alarm light
- }
- #endif
|