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

Thread: Teensy 3.0 and Shiftpwm library errors

  1. #1
    Member
    Join Date
    Jan 2014
    Location
    Iowa, USA
    Posts
    24

    Teensy 3.0 and Shiftpwm library errors

    I am surprised not to see this problem reported already. I receive the following compile on the Shiftpwm example program and the Teensy 3.0 in the Arduino IDE with Teensyduino installed. It compiles properly if the I set the hardware to any earlier Teensy. Do I have an outdated library or is there any chance this can be fixed?


    In file included from C:\Program Files (x86)\Arduino\libraries\ShiftPWM/ShiftPWM.h:25:0, from ShiftPWM_RGB_Example.ino:35:
    C:\Program Files (x86)\Arduino\libraries\ShiftPWM/pins_arduino_compile_time.h:320:1: error: cannot convert 'PORTBemulation*' to 'volatile uint8_t* const {aka volatile unsigned char* const}' in initialization
    C:\Program Files (x86)\Arduino\libraries\ShiftPWM/pins_arduino_compile_time.h:320:1: error: cannot convert 'PORTCemulation*' to 'volatile uint8_t* const {aka volatile unsigned char* const}' in initialization
    C:\Program Files (x86)\Arduino\libraries\ShiftPWM/pins_arduino_compile_time.h:320:1: error: cannot convert 'PORTDemulation*' to 'volatile uint8_t* const {aka volatile unsigned char* const}' in initialization
    In file included from ShiftPWM_RGB_Example.ino:35:0:
    C:\Program Files (x86)\Arduino\libraries\ShiftPWM/ShiftPWM.h:195:5: error: expected constructor, destructor, or type conversion before '(' token

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,111
    Today I ported the ShiftPWM library to Teensy 3.0 & 3.1.

    http://www.pjrc.com/teensy/td_libs_ShiftPWM.html
    https://github.com/PaulStoffregen/ShiftPWM

    If anyone is still watching this old thread, it works now.

  3. #3
    Senior Member
    Join Date
    Nov 2016
    Posts
    182
    hi,

    sorry for warming this up.. but how come, the ShiftPWM_RGB_Example works, but the ShiftPWM_Non_BLocking does not? oO

Posting Permissions

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