error: 'GP2Y0A21YK0F' is not a member of 'SharpIR'
SharpIR sensorName(SharpIR::GP2Y0A21YK0F, A0);
^~~~~~~~~~~~
exit status 1
'GP2Y0A21YK0F' is not a member of 'SharpIR'
The problem is with this static member:SharpIR::GP2Y0A21YK0F. If I use an integer instead, it works fine:
I just realized I had an old version of the library installed. When I installed the latest version (2.0.1), the problem went away. Sorry for the trouble!
When I try the example, I get this error:
The problem is with this static member:
SharpIR::GP2Y0A21YK0F
. If I use an integer instead, it works fine:Am I doing something wrong?