some config optimizations
This commit is contained in:
2
.vscode/arduino.json
vendored
2
.vscode/arduino.json
vendored
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"board": "bsfrance:avr:lora32u4",
|
"board": "bsfrance:avr:lora32u4",
|
||||||
"sketch": "crossbow\\crossbow.ino",
|
"sketch": "crossbow/crossbow.ino",
|
||||||
"port": "COM3",
|
"port": "COM3",
|
||||||
"output": "../build"
|
"output": "../build"
|
||||||
}
|
}
|
||||||
3
.vscode/c_cpp_properties.json
vendored
3
.vscode/c_cpp_properties.json
vendored
@@ -13,7 +13,8 @@
|
|||||||
},
|
},
|
||||||
"intelliSenseMode": "msvc-x64",
|
"intelliSenseMode": "msvc-x64",
|
||||||
"cStandard": "c11",
|
"cStandard": "c11",
|
||||||
"cppStandard": "c++17"
|
"cppStandard": "c++17",
|
||||||
|
"compilerPath": "/usr/bin/clang"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Mac",
|
"name": "Mac",
|
||||||
|
|||||||
@@ -1,12 +1,30 @@
|
|||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hardware type. Available types:
|
||||||
|
* ARDUINO_AVR_FEATHER32U4
|
||||||
|
* ARDUINO_SAMD_FEATHER_M0
|
||||||
|
*/
|
||||||
|
#define ARDUINO_AVR_FEATHER32U4
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TX or RX mode for hardware. Available types:
|
||||||
|
* DEVICE_MODE_TX
|
||||||
|
* DEVICE_MODE_RX
|
||||||
|
*/
|
||||||
#define DEVICE_MODE_TX
|
#define DEVICE_MODE_TX
|
||||||
// #define DEVICE_MODE_RX
|
// #define DEVICE_MODE_RX
|
||||||
|
|
||||||
#define FEATURE_TX_OLED
|
// #define FEATURE_TX_OLED
|
||||||
// #define FORCE_TX_WITHOUT_INPUT
|
// #define FORCE_TX_WITHOUT_INPUT
|
||||||
// #define FEATURE_TX_INPUT_PPM
|
|
||||||
|
/*
|
||||||
|
* Default mode of TX data input: SBUS
|
||||||
|
* Possible values:
|
||||||
|
* FEATURE_TX_INPUT_PPM
|
||||||
|
* FEATURE_TX_INPUT_SBUS
|
||||||
|
*/
|
||||||
#define FEATURE_TX_INPUT_SBUS
|
#define FEATURE_TX_INPUT_SBUS
|
||||||
|
|
||||||
// #define DEBUG_SERIAL
|
// #define DEBUG_SERIAL
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
#define DEVICE_MODE_TX
|
#define DEVICE_MODE TX
|
||||||
|
|
||||||
#define FEATURE_TX_OLED
|
#define FEATURE_TX_OLED
|
||||||
#define FEATURE_TX_INPUT_SBUS
|
#define FEATURE_TX_INPUT_SBUS
|
||||||
|
|||||||
Reference in New Issue
Block a user