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

Thread: SoftPWM on Teensy 3?

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Location
    Temple, Texas
    Posts
    10

    SoftPWM on Teensy 3?

    I am trying to use SoftPWM on Teensy 3.

    The sketch SoftPWM_Arduino_LED_Blink compiles and runs on Arduino and Teensy 2 using teensyduino beta 9.

    When compiling on Teensy 3 though, I get:
    Code:
    C:\Program Files\Arduino\teensyduino_1.0.2_beta9\libraries\SoftPWM\SoftPWM.cpp:70: error: expected constructor, destructor, or type conversion before '(' token
    In SoftPWM line 70 is:
    Code:
    // Here is the meat and gravy
    #ifdef WIRING
    void SoftPWM_Timer_Interrupt(void)
    #else
    ISR(SOFTPWM_TIMER_INTERRUPT)     <<<<<<<------------------- Line 70
    #endif
    {
      uint8_t i;
    Apologies if this has been discussed, I didn't find anything about this through a search of the forum or Google.

    Cheers,
    John

  2. #2
    Junior Member
    Join Date
    Nov 2012
    Location
    Temple, Texas
    Posts
    10
    Browsing further on this forum I see that interrupt support on Teensy 3 is not ready yet, so that probably explains the error. Not a problem, for my current project a Teensy 2 will be quite sufficient.

    Cheers,
    John

Tags for this Thread

Posting Permissions

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