Teensy LC with ShiftPWM

Status
Not open for further replies.
I am having issues getting this to run. I keep getting the error

"On Teensy 3.x & LC, you must define SHIFTPWM_NOSPI, ShiftPWM_dataPin, ShiftPWM_clockPin"
#error "On Teensy 3.x & LC, you must define SHIFTPWM_NOSPI, ShiftPWM_dataPin, ShiftPWM_clockPin"

That section of my code looks like this:

#define SHIFTPWM_NOSPI
const int ShiftPWM_dataPin = 17;
const int ShiftPWM_clockPin = 15;

Do I need to include other files in a certain order? I have the latest version of Teensyduino.
 
You need to actually #define those ShiftPWM_xxxPin, since the preprocessor can't know about constants defined in-code.
 
All you need to do is uncomment these 3 lines in the example.

sc.png

As you can see in this screenshot, it compiles correctly for Teensy LC when you uncomment those 3 lines.
 
Status
Not open for further replies.
Back
Top