Version 4 of Firmata

Updated 2017-11-17 03:39:04 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...

Writing to LCD with I2c module: with some like this: http://www.4tronix.co.uk/arduino/pictures/i2c_03.jpg