引用OliverKung发表于1楼的内容 那啥,arduino的io是可以配置上下拉的,你可以试下把input改成input_pulldown或者你外部配置一个下拉电阻也是可以的
这样啊。我试一下/滑稽