Questions tagged [teensy]

The Teensy is a complete USB-based microcontroller development system, in a very small footprint, capable of implementing many types of projects.

The Teensy is a complete USB-based microcontroller development system, in a very small footprint, capable of implementing many types of projects.
All programming is done via the USB port.
No special programmer is needed, only a standard "Mini-B" USB cable and a PC or Macintosh with a USB port.

Home page: https://www.pjrc.com/teensy/

155 questions
2
votes
1 answer

Keyboard.print() equivalent for C on Teensy?

I'm trying to write a program for Teensy that uses it as a keyboard. I want it to print out certain strings depending on input, but some of the strings are rather long. I know that for Arduino IDE there's a simple Keyboard.print() function that…
Teensy
  • 21
  • 1
2
votes
1 answer

Python: Serial timeout not working when using readline

Ok I don't get this. I've looked everywhere now, but I don't see why this is not working: def main(): time = sys.argv[1] ser = serial.Serial('/dev/ttyACM0',9600, timeout=1) paramstr= "A 5 " + time + " 0 0 0" ser.write(paramstr) …
Markus
  • 147
  • 2
  • 10
1
vote
0 answers

Creating a static object crashes my teensy 4.0

I've written a timer class to be able to software debounce the readings of a gpio expander with sixteen buttons wired to a teensy 4.0. In order for it to work as intended I need to create the timer object as static. However - even though the code…
Erik
  • 133
  • 1
  • 5
1
vote
1 answer

USB Audio descriptor for Teensy board

I'm trying to update the Teensy 4 code to increase the number of output channels for the USB audio interface that only supports 2 at the moment. My first mission is to update the Audio descriptors (under #ifdef AUDIO_INTERFACE at…
SonaBen
  • 21
  • 3
1
vote
0 answers

QMK Toolbox: No HID console devices connected when trying to upload firmware to keyboard

The image would normally show "list all devices", so I’m assuming it says, "No HID console devices connected" because for some reason it is not recognizing my ATmega32U4 chip. I have tried: Using three wires. I have already confirmed two of the…
Meylita
  • 11
  • 2
1
vote
2 answers

in Rust no_std, how can I return one of multiple closures implementing a trait using stable rust?

I am working with Rust on a Teensy 4.0 ( --target thumbv7em-none-eabihf ) which means I have to use #![no_std] . I have some situations where I want to do different things depending on the position of a rotary switch. The following is a toy example…
Mutant Bob
  • 3,121
  • 2
  • 27
  • 52
1
vote
2 answers

How do you use a teensy 4 pin via the teensy4-bsp Rust crate as an input with the pull-up resistor enabled?

I am trying to figure out how to do the Rust equivalent of pinMode(PIN_D7, INPUT_PULLUP); // Pushbutton (from https://www.pjrc.com/teensy/td_digital.html) I have created a project using the template https://github.com/mciantyre/teensy4-rs-template…
Mutant Bob
  • 3,121
  • 2
  • 27
  • 52
1
vote
1 answer

How to exchange data between Teensy4.1 and RaspberryPi 4 using serial interface

I need to exchange data (roughly 100 bytes 10 times a second) between Teensy4.1 and RaspberyPi 4. I decided to do this via serial interface. There is Teensy code: float r=191.699997; byte * b = (byte *) &r; Serial8.write(b, 4); I have hard-coded…
bzc0fq
  • 579
  • 1
  • 3
  • 18
1
vote
1 answer

Mismatched protocol version in packet Error: lost sync or rosserial_python is from different ros release than the rosserial client

I am using a raspberry pi 4 mode B to interface communicate with a Teensy 4.0. I'm using ROS noetic on Ubuntu 20.04. I've flashed the code to the Teensy successfully using platformio. I have a problem, however, when I try and launch the calibration…
1
vote
2 answers

What is rosidl_runtime_c__double__Sequence type?

I'm trying to use a teensy 4.1 as an interface between an encoder and ROS thanks to micro-ros (arduino version). I would like to publish position of a wheel to the /jointState topic with the teensy but there is no example on the micro-ros arduino…
1
vote
1 answer

Flashing QMK firmware for the 'SiCK-68' keyboard, but I am getting an error from undeclared MCU pins

I’m trying to flash firmware for a SiCK-68 keyboard on a Teensy LC. I already hand-wired up everything and am trying to flash on the Teensy LC. I'm getting an error saying that I am trying to use undeclared pins B16, B17, A1, A2, and E30. Here is…
gtullio12
  • 13
  • 3
1
vote
1 answer

Adding Eigen to PlatformIO

I'm having trouble adding Eigen (https://eigen.tuxfamily.org/index.php?title=Main_Page) to the PlatformIO for use with the Teensy 4.1. What is the proper procedure for adding a library to PlatformIO when it's not in the registry? I tried following…
MatArnold
  • 21
  • 4
1
vote
0 answers

SerialPort.Write The semaphore timeout period has expired

I'm working on a project where I control a large number of RGB led strips with Teensy Arduino boards. I've tested it with a subset of the boards and everything seems to be fine until I connect them all and start sending my Byte arrays to the…
Ben
  • 166
  • 2
  • 19
1
vote
0 answers

Dumping the bootloader from Teensy 4.0

I'm currently working with the teensy 4.0 and I heart that it uses a proprietary bootloader. So my initial thought were to dump it and reverse it, to see what's going on. A little bit info to the teensy 4.0 It uses the iMXRT1062 from NXP, the…
Lockna
  • 691
  • 1
  • 8
  • 24
1
vote
1 answer

Teensy 3.2 outgoing packet payload limit 8 bytes

I would like to emulate 3M USB touchscreen controller. I found exact protocol and slightly changed the source code in teensy3 library. I changed VendorID and ProductID. Also I added my USB isr handler and send protocol specific report having size 11…
4xy
  • 3,494
  • 2
  • 20
  • 35
1
2
3
10 11