Search results

  1. R

    Teensy4 Serial.printf() won't print two numbers

    Thanks! Using %llu and %lu worked perfectly. But does anyone know why the original %d specifier seemed to work only on even-numbered params, and not odd-numbered? (Or is this behavior just "unspecified", so I should just be happy it printed out anything at all?)
  2. R

    Teensy4 Serial.printf() won't print two numbers

    In fact, if I do this: Serial.printf("%d :: %d :: %d :: %d :: %d :: %d :: %d\n", val, val, val, val, val, val); I get this: . . . 1218268 :: 0 :: 1218268 :: 0 :: 1218268 :: 0 :: 1218268 1218269 :: 0 :: 1218269 :: 0 :: 1218269 :: 0 :: 1218269 1218270 :: 0 :: 1218270 :: 0 :: 1218270 :: 0 ...
  3. R

    Teensy4 Serial.printf() won't print two numbers

    I'm sure I'm missing something obvious, but here goes. The code (which I would expect to print two numbers, one monotonically increasing value and the current results of millis()) refuses to print anything other than zero for the second parameter (it doesn't matter what that second value is)...
  4. R

    Getting AdaFruit DOTStar LED matrix working over SPI

    I'm using the 4-arg constructor (but the fourth arg has a default of DOTSTAR_BRG) Good question! I'll check this out when I'm back at home.
  5. R

    Getting AdaFruit DOTStar LED matrix working over SPI

    I'm trying to get this LED matrix working over SPI on Teensy 4 (using pins 11 and 13 for DIN and CLK), but it seems like nothing at all is happening. One weird thing: If I don't #include <Wire.h> explicitly, the program doesn't compile (the dependency isn't loaded transitively, but it is loaded...
  6. R

    Soft reboot on Teensy4.0

    Generic M7 manual indicates that this should work (same as T3.x), but I guess it doesn't. So has nobody figured out how to do a soft-reset on T4?
  7. R

    PWM on Teensy 4.0?

    Thanks. That page doesn't indicate the PWM clock / prescalar for T4, though. Where can I find that?
  8. R

    Thread: Teensy 4.0 and SPI - problems with number of transactions in an interrupt rou

    I could be wrong, but I think you need to call attachInterrupt(digitalPinToInterrupt(adcReadyPin), ADC_ready, RISING) instead, in order to get the right interrupt for your pin, instead of attaching the interrupt to the pin number. (from...
  9. R

    PWM on Teensy 4.0?

    I guess I'm trying to figure out, if I know the frequency I want to pulse, and the duty cycle, what do I need to call in order to make that happen using analogWrite()? I want to use PWM to pulse a Stepper Motor driver.
  10. R

    PWM on Teensy 4.0?

    For example, will FrequencyTimer2 library work on Teensy 4.0?
  11. R

    PWM on Teensy 4.0?

    I'm trying to generate PWM signals on Teensy 4.0. Is the information on this page still valid for 4.0?
  12. R

    How to reset Teensy 4.0?

    I have the following code in a library for resetting Teensy 3.x. #ifdef CORE_TEENSY // Software reset macros / MMap for Cortex M3-based boards (possibly others?) // see http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337e/Cihcbadd.html#Cihehdge , under "Application Interrupt...
  13. R

    CAN-FD on Teensy 4.0: Which pins?

    The product page and pinout for Teensy 4.0 says that there are "3 CAN Bus (1 with CAN FD)". Which pins should I use for CAN-FD? CTX3/CRX3?
  14. R

    How to tell if TeensyStep controller is still moving, or has reached its setPoint?

    I'm using the excellent TeensyStep library to control stepper motors in my project. It's definitely made some things easier. There doesn't seem to be any API to access the private 'target' member in the Stepper class, nor any API in the controller to determine if the controller has reached it's...
  15. R

    TWCR register not defined on Teensy?

    Hi all, I'm trying to use the platformio-managed library WiiChuck, for integrating with a Wiimote nunchuck control on Teensy 3.2. But it looks like, somewhere in the guts of this library is a check, to only call Wire.begin() if I2C isn't already running. They do this by checking the TWCR...
  16. R

    [Teensy 3.2] Help! Can't get basic Teensyduino servo example working?

    Using Teensy 3.2, and the pinout card (this one), I copy/pasted the Servo.h example from here, plugged in a servo (powered by a separate 5V supply) on pin 20, and uploaded and ran the code. Literally nothing happens. The Serial output is showing that the loop is executing ( I see the values...
Back
Top