mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-03-16 13:59:13 +00:00
More examples in _MyConfig.h.example
This commit is contained in:
parent
105e0bb7a4
commit
4a9d295f1a
@ -6,14 +6,20 @@
|
|||||||
To disable a setting use #undef <setting name>
|
To disable a setting use #undef <setting name>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//#define FORCE_GLOBAL_ID 0x12345678
|
// For example you can also define multiple module configurations, uncomment the one you want to compile for:
|
||||||
|
#define Module_1
|
||||||
|
//#define Module_2
|
||||||
|
//#define Module_2
|
||||||
|
//#define Module_4
|
||||||
|
|
||||||
//Force bootloader
|
//Example on how to force the "Flash from TX" feature for all modules
|
||||||
#define CHECK_FOR_BOOTLOADER
|
#define CHECK_FOR_BOOTLOADER
|
||||||
|
|
||||||
#if not defined STM32_BOARD
|
//Example on how to force the same ID for all modules: be carefull this is really if you want to be able to use one or another radio but not both!
|
||||||
// Everything here will only apply to Multi Atmega328p boards
|
//#define FORCE_GLOBAL_ID 0x12345678
|
||||||
// Add or remove unwanted protocols to fit in flash
|
|
||||||
|
#if defined Module_1
|
||||||
|
//Example on how to remove unwanted protocols to fit in flash for Atmega 328 modules
|
||||||
#undef AFHDS2A_A7105_INO
|
#undef AFHDS2A_A7105_INO
|
||||||
|
|
||||||
#undef DEVO_CYRF6936_INO
|
#undef DEVO_CYRF6936_INO
|
||||||
@ -36,4 +42,18 @@
|
|||||||
#undef CABELL_NRF24L01_INO
|
#undef CABELL_NRF24L01_INO
|
||||||
#undef ESKY150_NRF24L01_INO
|
#undef ESKY150_NRF24L01_INO
|
||||||
#undef H8_3D_NRF24L01_INO
|
#undef H8_3D_NRF24L01_INO
|
||||||
|
|
||||||
|
#elseif defined Module_2
|
||||||
|
//Example of a module which doesn't need the telemetry signal to be inverted
|
||||||
|
#undef INVERT_TELEMETRY
|
||||||
|
|
||||||
|
#elseif defined Module_3
|
||||||
|
//Example of a module which will be used with OpenTX
|
||||||
|
#undef MULTI_STATUS
|
||||||
|
#define MULTI_TELEMETRY
|
||||||
|
|
||||||
|
#elseif defined Module_4
|
||||||
|
//Example of a module which will be PPM only
|
||||||
|
#undef ENABLE_SERIAL
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user