USB Type FlightSim Controls (in PlatformIO)

Status
Not open for further replies.

Mike554

Member
Hi,

Using PlatformIO, which header files do I need to include in order to use Flight Sim Controls?

In Arduino IDE I would use menu Tools > USB Type > Flight Sim Controls and assume this adds headers automagically?

Thanks in advance,
Mike:rolleyes:
 
Resolved.

Hello,

Just in case anyone else has the same problem/misunderstanding when trying to use Teensy USB in PlatformIO IDE.

https://docs.platformio.org/en/latest/platforms/teensy.html

In platformio.ini a build flag is needed...

Code:
[env:teensy_hid_device]
platform = teensy
framework = arduino
board = teensy20
[B]build_flags = -D USB_FLIGHTSIM[/B]

I mistakenly thought the arduino IDE added headers behind the scenes and that I would just need to <#include> the right ones in PlatformIO just like you do for <Arduino.h>.

Mike ;)
 
Status
Not open for further replies.
Back
Top