Skip to content
4 changes: 3 additions & 1 deletion Template/MyCustomDevice_platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build_flags =
build_src_filter =
+<../Template> ; build files for your custom device, replace "Template" by your folder name
lib_deps = ; You can add additional libraries if required
custom_core_firmware_version = 2.5.1 ; define the version from the core firmware files your build should base on
custom_core_firmware_version = 3.0.0 ; define the version from the core firmware files your build should base on
custom_source_folder = Template ; path to your Custom Device Sources, replace "Template" by your folder name
custom_community_project = YourProject ; Folder name inside zip file, also ZIP file name if "custom_zip_filename" is not changed
custom_zip_filename = ${env_template.custom_community_project} ; Name of the zip-file, overwrite it to define an different zip-file name
Expand Down Expand Up @@ -54,6 +54,7 @@ build_flags =
-I./src/_Boards/Atmel/Board_ProMicro ; Include the required board definition. If you need your own definition, adapt this to your path (e.g. -I./CustomDevices/_template/_Boards)
'-DMOBIFLIGHT_TYPE="Mobiflight Template Micro"' ; this must match with "MobiFlightType" within the .json file
'-DMOBIFLIGHT_NAME="Mobiflight Template"' ; this will show up as Name in the settings dialog unless it gets change from there
-DMF_STEPPER_SUPPORT=0 ; disable stepper support, could also be another device. Not all devices will fit into flash for ProMicro
build_src_filter =
${env.build_src_filter} ; don't change this one!
${env_template.build_src_filter} ; don't change this one!
Expand Down Expand Up @@ -150,3 +151,4 @@ custom_core_firmware_version = ${env_template.custom_core_firmware_version} ; do
custom_community_project = ${env_template.custom_community_project} ; don't change this one!
custom_source_folder = ${env_template.custom_source_folder} ; don't change this one!
custom_zip_filename = ${env_template.custom_zip_filename} ; don't change this one!

Loading