/Sensor/lib/PinConfig.h

https://github.com/ahappyforest/SmartIrrigation · C Header · 10 lines · 8 code · 2 blank · 0 comment · 0 complexity · 6ae1adc05477f409aa90d3c000929e12 MD5 · raw file

  1. #ifndef _PIN_CONFIG_H
  2. #define _PIN_CONFIG_H
  3. #define DS18B20_DQ MicaBusC.PW2 // DS18b20的数据线
  4. #define DS18B20_POWER MicaBusC.PW4 // 电源线控制线, 低电平有效
  5. #define SOLENOIDVALVES_POWER MicaBusC.Int0 // 电磁阀们控制线, 低电平有效
  6. #define YL69_POWER MicaBusC.PW1 // 土壤湿度传感器, 电源控制线, 低电平有效
  7. #define YL69_ADO MicaBusC.Adc7 // 土壤湿度传感器, ADC采集线, 低电平有效
  8. #endif