Error with magnetic sensor analog read function

I am currently trying to run this example:

I tried writing my own and it wouldn’t compile, so I literally copied and pasted the example code into the window and still won’t compile. I always get this error:

It looks to me like there’s an error in the library. That’s unless I’m missing something?

Any thoughts?

Thanks.

Ah, resolved it.

I was getting the same error on every simpleFOC related sketch.

I re-installed the simpleFOC library and it’s gone away.

1 Like