Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 2 FirstFirst 1 2
Results 26 to 28 of 28

Thread: Teensy 4 not supported by ADC examples

  1. #26
    I have been trying to understand what is going on in this conversionSpeed example but there are instructions in this code that are not in the Arduino code reference. Is there a link someone can please post that describes these codes (they must be specific to the Teensy I guess).
    For example:
    for (auto conv_speed : conversion_speed_list ) { What is going on here? What is "auto"? What is the ":" for?
    Thanks. Teensy 4.0 is totally new to me.

  2. #27
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,765
    Check out this file on your system :: "...YOUR arduino..."\hardware\teensy\avr\libraries\ADC\index.html

    Open in browser and there is documentation that should hold answers.

  3. #28
    Thanks, there is some info on the ADC software there but nothing basic that tells me what "AUTO' is or what "-->" means or how the interupt system works in the T4.

    Anyway, I am stripping out all the multiple iterations from the conversionSpeed file in the examples for ADC and having a problem with this compiling this line:
    adc --> adc0 --> enableInterrupts(adc0_isr); I did not touch this line but the compiler says "adc0_isr was not declared in this scope."
    I searched the original file for "isr" and it is not declared in that either, yet the original compiles OK. What is isr and why won't mine compile?
    What is the declaration that it is looking for?
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •