// Teensy 3.0
#elif defined(__MK20DX128__)
#define TOTAL_ANALOG_PINS 14
#define TOTAL_PINS 38 // 24 digital + 10 analog-digital + 4 analog
#define VERSION_BLINK_PIN 13
#define IS_PIN_DIGITAL(p) ((p) >= 0 && (p) <= 34)
#define IS_PIN_ANALOG(p) (((p) >= 14 && (p) <= 23) || ((p) >= 34 && (p) <= 38))
#define IS_PIN_PWM(p) digitalPinHasPWM(p)
#define IS_PIN_SERVO(p) ((p) >= 0 && (p) < MAX_SERVOS)
#define IS_PIN_I2C(p) ((p) == 18 || (p) == 19)
#define PIN_TO_DIGITAL(p) (p)
#define PIN_TO_ANALOG(p) (((p)<=23)?(p)-14:(p)-24)
#define PIN_TO_PWM(p) PIN_TO_DIGITAL(p)
#define PIN_TO_SERVO(p) (p)
I believe that the problem may be that the modem-manager has been upgraded in recent versions to ignore all the careful setting of ENV{ID_MM_DEVICE_IGNORE}="1" in /etc/udev/rules.d/* and elsewhere.
/* Is the device blacklisted? */
if (g_udev_device_get_property_as_boolean (physdev, "ID_MM_DEVICE_IGNORE")) {
mm_dbg ("(%s/%s): port's parent device is blacklisted", subsys, name);
goto out;
}
From a quick look that rule should work, but remember you want to tag
the entire *USB device*, not just the serial port. udev rules parsing
changes might also affect whether or not this works. In any case, run
'udevadm control --export-db' and check whether the USB device parent of
the serial port actually has ID_MM_DEVICE_IGNORE defined.
I have a Teensy 3.1 and want to use Firmata. Is there a similar block of code I can add to Boards.h for Teensy 3.1?
I did try, but it wouldn't compile and gave me the error "Please edit Boards.h with a hardware abstraction for this board."
In Arduino, use File > Examples > Firmata > StandardFirmata. Set Tools > USB Type to "Serial" (Firmata is based on Serial) and then click Upload.
Is touchRead supported on Firmata for Teensy?
The Firmata_compiled files located here:
http://pjrc.com/teensy/td_libs_Firmata.html
only contain hex files for Teensy 1.0 2.0 & Teensy++.
Can anyone help with Firmata files for Teensy 3.1, please?
I am currently using Teensyduino 1.18