【问题标题】:Arduino button press representing boolean variable in pythonArduino按钮按下表示python中的布尔变量
【发布时间】:2019-12-22 14:54:11
【问题描述】:

如何在按下按钮时在 python 中将布尔变量设置为True,以便每次按下按钮时我都可以让 python 程序执行一些操作。

if button_pressed:
   print('button was pressed')

【问题讨论】:

    标签: python python-3.x button arduino boolean


    【解决方案1】:

    我猜你应该在你的 python 脚本中连接按钮的引脚。

    也许this medium article 可以帮到你!

    【讨论】:

      猜你喜欢
      • 2018-05-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-26
      • 2022-12-05
      • 1970-01-01
      • 2022-01-08
      相关资源
      最近更新 更多