Jul-29-2017, 12:21 AM
Hello everyone,
I am trying to use pyfirmata with the Teensy 3.6. I am struggling with the dictionary for this board, in particular for its two DAC pins (A21 and A22). This is what I have so far:
What am I missing?
Thanks!
I am trying to use pyfirmata with the Teensy 3.6. I am struggling with the dictionary for this board, in particular for its two DAC pins (A21 and A22). This is what I have so far:
teensy36 = { 'digital' : tuple(x for x in range(40)), 'analog' : tuple(x for x in range(23)), 'pwm' : (2,3,4,5,6,7,8,9,10,14,16,17,20,21,22,23,29,30,35,36,37,38), // I know this can be done more elegantly :) 'use_ports' : True, 'disabled' : (0, 1) # Rx, Tx, Crystal } board = fm.Arduino('COM5') board.setup_layout(teensy36)Problem is, I can't write to the two DAC pins. It either tells me that they are inputs, not outputs, or, if I force them to be outputs, the output voltage doesn't change, no matter the .write() value.
What am I missing?
Thanks!