一、接线方式与GPIO调用方法:
- 电源接入+5v和GND
- In1-4分别接GPIO1-4
- 正转时,GPIO1-4分次传入:[1,0,0,0],[sleep],[0,1,0,0],[sleep],[0,0,1,0],[sleep],[0,0,0,1]
- 逆转时,GPIO1-4分次传入:[0,0,0,1],[sleep],[0,0,1,0],[sleep],[0,1,0,0],[sleep],[1,0,0,0]
- 停止时,GPIO1-4一次传入:[0,0,0,0]
出处:https://www.cnblogs.com/songxingzhu/p/7966024.html