1
0

sensors.h 711 B

12345678910111213141516171819202122
  1. /*******************************************************************
  2. Description:Functions for various sensor types.
  3. Author: www.corvin.cn
  4. History: 20180209: init this file;
  5. ********************************************************************/
  6. #ifndef __SENSORS_H__
  7. #define __SENSORS_H__
  8. static const int PowerContro_PIN = 52; //Mosfet Power controller sensor pin
  9. static const int alarm_powerControl_pin = 51; //alarm light powercontrol sensor pin
  10. void initSensors()
  11. {
  12. pinMode(PowerContro_PIN, OUTPUT);
  13. digitalWrite(PowerContro_PIN, HIGH); //default enable Power controller
  14. pinMode(alarm_powerControl_pin, OUTPUT);
  15. digitalWrite(alarm_powerControl_pin, LOW); //default disable alarm light
  16. }
  17. #endif