40x2 pwm syntax error

Berny

Member
I get a syntax error on the following two code statements using a 40x2:
pwmout c.1,249,400
pwmout c.2,249,400

The error is - Error: Invalid pwmout pin (use C.5)!

According to the pinout for a 40x2 this should work. It was working with a 28x2.

What am I doing wrong?:confused:
 

hippy

Ex-Staff (retired)
Not sure what's wrong, it works for me, have you got the latest Programming Editor and selected 28X2/40X2 ? Looks like a 20X2 error message to me :)
 
Top