一、使用工具: =====树莓派3b、继电器、电磁锁、导线若干 二、接线: 三、实现代码(树莓派): #include <stdio.h> #include <string.h> #include <wiringPi.h>