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
1
vote
1 answer

Dynamically create library object within in a class's constructor

I am trying to create a object for a LED matrix which could have a varying size throughout a program's runtime. To do this I am trying to dynamically create an object from the OctoWS2811 library and define it's size within the constructor of a…
1
vote
2 answers

How to link data from one struct to the other

I'm doing some changes the ArtNet repository. I want to extend it a little but to do that efficiently I had a couple of question where I don't know the answer on. Please consider the piece of code bellow. As you can see I have three…
Thieu
  • 33
  • 1
  • 4
1
vote
1 answer

Keyboard map Sinclair Spectrum ZX +2 on Teensy 3.2

I'm converting a Sinclair Spectrum 128 ZX +2 into a Raspberry Pi-powered computer and I'm using a Teensy 3.2 USB Development Board for mapping the original keyboard with the original membrane and get a normal USB keyboard. I'm not planning to…
Kappe
  • 9,217
  • 2
  • 29
  • 41
1
vote
1 answer

Can a shell script be typed and executed without saving as a file?

I want to type a script into something like a heredoc and execute it without writing to a file first. I use a Teensy3.2 microcontroller with an attached sdcard to automatically type out some repetitive tasks (like a USB macro keyboard). Why? I have…
1
vote
1 answer

Teensy's #include got overridden by Arduino

In Arduino C+, I wanted to avoid the year 2038 overflow problem when using 32-bit, signed time_t type, so that I'd like to specifically use the Time.h from Teensy (Or TimeLib.h for that matter; I am writing code for Teensy 3.5 on Arduino 1.8.7). But…
Dave
  • 133
  • 8
1
vote
1 answer

How can I create a serial and read at a certain frequency on a Teensy

I think my question is more of a lack of comprehension, but here is an overview: I'm trying to discuss with an old Mitsubishi which uses serial communications. The initialization works by toggling the K-Line at 5 bauds (this technique seems to be…
P1kachu
  • 1,077
  • 3
  • 11
  • 33
1
vote
1 answer

Arduino/ Teensy main loop not executing after calling other void function

I am using Teensy 3.2 to develop an air quality monitoring system. The principle is quite easy. Get the data from the sensors, (PM 2.5 ,CO2) , Send it back to Teensy to calculate one minute average, Record the average and store it on a microSD card.…
1
vote
1 answer

cpp program hanging when accessing member variable of a class member

Using a Teensy 3.2, my program is hanging at the section pointed out below. I don't know how to access glyph. I can see all lines print to my Arduino serial monitor if I comment out the //hangs here line. #include #include…
mh00h
  • 1,824
  • 3
  • 25
  • 45
1
vote
2 answers

How to find the address of a variable when using AVR?

I am trying to write a program that detects pixel level collision of bitmaps on a Teensy micro controller compiling with AVR-GCC. I am trying to work out how to calculate the position of a single byte of the bitmap on the screen and have been told I…
david_10001
  • 492
  • 1
  • 6
  • 22
1
vote
2 answers

How to use printf() without any libraries in C?

I am programming a Teensy micro-controller as a part of a C course and am trying to work out the value of one of my integer variables. I have an integer variable called Contrast, which is initialised to the value of a constant defined as a…
david_10001
  • 492
  • 1
  • 6
  • 22
1
vote
2 answers

Arduino's string.toDouble() not working

I am trying to convert a string to a double in one of my Arduino projects (specifically using a Teensy 3.5 in the Arduino IDE) using Arduino's string.toDouble() command. When I try to implement the function as shown in the code below, I get the…
Nathan
  • 31
  • 2
  • 5
1
vote
1 answer

Implementing enum like functionality with custom types

I'm working on a USB MIDI controller using a Teensy. The controller is a row of 7 buttons, each button is a progression degree and the 7 buttons make up a chord progression. When pressed the device sends a MIDI note on/off message to play a…
BugHunterUK
  • 8,346
  • 16
  • 65
  • 121
1
vote
1 answer

Platform.io upload to Teensy 3.6 via SWD (J-LINK)

I am using the excellent http://platformio.org/ together with Visual Studio Code to develop for Teensy 3.6 (an Arduino compatible board). This works great. But I wanted to do better debugging via SWD (serial wire debug). So I disconnected the…
user643011
  • 2,163
  • 3
  • 21
  • 38
1
vote
0 answers

Teensy does not work on Android Device as USB HID Keyboard

We are using a teensy 2.0 on an Android 4.4 or Android 5.x device. We want the teensy to emulate a keyboard. When a push-button is pressed a small letter should be send. After releasing a button, a capital letter should be send. We have used…
Chris
  • 2,296
  • 4
  • 27
  • 46
1
vote
1 answer

Read Arduino Hardware specifications in C++

I recently started into C++ and Arduino Coding which makes a lot of fun! I have different boards for example an Arduino UNO R3, Arduino Mini and an Arduino compatible Teensy 3.2. I'd like to make my program to automatically select specific pins.…
KoalaGangsta
  • 397
  • 1
  • 17
1 2
3
10 11