Guo Wenxue
2019-06-27 b64d6ff04401ed85fce543b8e20c8c360fb284f5
mqttd/hal/relay.h
@@ -19,10 +19,12 @@
#define OFF                 0
#endif
/*   I/O Pin connected to PIN#18, BCM code pin number is 24 and wPi pin number is 5 */
#define RELAY_PIN           5
void relay_init(void);
/* I/O Pin connected to PIN#40, BCM code pin number is 21 and wPi pin number is 29,
 * can check by linux command <gpio readall> on RPi */
#define RELAY_PIN           29
void init_relay(void);
void turn_relay(int cmd);
#endif   /* ----- #ifndef _RELAY_H_  ----- */