9 years ago.  This question has been closed. Reason: Off Topic

Pin Names out of scope

I am using this library for using Motors: https://developer.mbed.org/cookbook/Motor#library

So I am declaring my motor using: Motor A(p16, p12, p10, 1); pwm, fwd, rev, can brake

However I am occuring an error that 'p16', 'p12', 'p10' are not declared in this scope.

Can anyone suggest what it is I am missing?

1 Answer

9 years ago.

p16, p12 and p10 look like pin names for the LPC1768 board. For the FRDM-K64F you probably want to use the names given on https://developer.mbed.org/platforms/FRDM-K64F/ e.g. D1, D2

If you're not using the FRDM-K64F then set the compiler to the platform you are using.

Accepted Answer