|« Sonntag und schlechtes Wetter = selbergemachte Linzertorte||Nautilus und Betriebssystem »|
Firmata firmware and the Arduino
If your Arduino is running with the latest Firmata firmware (aka sketch), you will notice that there are plenty of issues with binding implementations. This is because the Firmata protocol implements some new features of the past years and some bindings are not updated to work with Firmata > 2.0.
import pyfirmata PIN = 12 DELAY = 2 PORT = '/dev/ttyACM0' board = pyfirmata.Arduino(PORT) while True: board.digital[PIN].write(1) board.pass_time(DELAY) board.digital[PIN].write(0) board.pass_time(DELAY)
Download it from here.
what sketch should I upload to the Arduino for this code to work? And do I just wire an LED on digital 12?
Standard Firmata is the needed sketch. A LED with a resistor, one leg to GRD, one leg to D12.