forked from MobiFlight/MobiFlight-Connector
-
Notifications
You must be signed in to change notification settings - Fork 0
How to set up a custom device
elral edited this page Sep 9, 2023
·
28 revisions
First of all, it is assumed that you have properbly installed PlatformIO under VSCode. If not, it is the right time to do this. Next clone the firmware reposority and create a new branch for your custom device. Follow the next steps carefully!
- A new folder under
/CustomDevicesis required. The foldername should be your (company)Name. This helps to have a better overview between multiple custom device from different users. - Copy the
_templatefolder into your newly created folder from step 1 and rename this folder to your device name. - Rename
MyCustomClass.cppandMyCustomClass.hto a name which fits to your custom device. - Rename
MyCustomDevice_platformio.inito a name which fits to your custom device (see step 3). - Adapt the include path's from
MyCustomClass.cpp,MFCustomDevice.handMFCustomDevice.cppfrom#include MyCustomClass.hto#include YourChangedName.h