PhidgetSpatial function not declared for Arduino
Posted: Wed Jan 20, 2021 6:03 pm
I have a Teensy4.1 board, which is an Arduino. On windows, I use the tool Arduino 1.8.13 to compile the C code. I've loaded the library phidget21 and I have included the library.
The code is:
#include <phidget21.h>
void setup()
{
...
CPhidgetSpatialHandle spatial = 0;
CPhidgetSpatial_create(&spatial);
CPhidget_open((CPhidgetSpatialHandle)spatial, -1);
result = CPhidget_waitForAttachment((CPhidgetSpatialHandle)spatial, 10000);
When I compile, I get the error 'CPhidgetSpatial_create' was not declared in this scope.
Any idea why?
The code is:
#include <phidget21.h>
void setup()
{
...
CPhidgetSpatialHandle spatial = 0;
CPhidgetSpatial_create(&spatial);
CPhidget_open((CPhidgetSpatialHandle)spatial, -1);
result = CPhidget_waitForAttachment((CPhidgetSpatialHandle)spatial, 10000);
When I compile, I get the error 'CPhidgetSpatial_create' was not declared in this scope.
Any idea why?