Updated 2017-09-08 18:21:26 by Jorge

JM 9/7/2017

What is firmata? https://github.com/firmata/protocol

tfirmata is a Tcl implementation of Arduino Firmata:

The original tfirmata did not work for me on Windows7, I suspect there is an endless loop on the tfirmata::open cmd.

The enhanced version (by chw) worked just fine, with the following code as a minimum example:
 console show
 package require tfirmata
 set bd [tfirmata::open COM8]

 $bd mode 13 out

 for {set i 1} {$i <20} {incr i} {
    $bd dset 13 1
    tfirmata::sleep 250
    $bd dset 13 0
    tfirmata::sleep 250
    puts $i
 }
 puts done...