Adds simple Kconfig
This commit is contained in:
parent
a65b00a439
commit
c5a5fcaf5f
2 changed files with 33 additions and 2 deletions
32
code/nrf-connect/Kconfig
Normal file
32
code/nrf-connect/Kconfig
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
|
||||
source "Kconfig.zephyr"
|
||||
|
||||
choice PRST_NETWORK
|
||||
prompt "b-parasite Network"
|
||||
default PRST_NETWORK_BLE
|
||||
|
||||
config PRST_NETWORK_NONE
|
||||
bool "Network disabled"
|
||||
|
||||
config PRST_NETWORK_BLE
|
||||
bool "Uses BLE as the network"
|
||||
depends on BT
|
||||
|
||||
endchoice
|
||||
|
||||
###
|
||||
### BLE configs
|
||||
###
|
||||
|
||||
choice PRST_BLE_ENCODING
|
||||
prompt "b-parasite BLE encoding"
|
||||
depends on PRST_NETWORK_BLE
|
||||
default PRST_BLE_ENCODING_BPARASITE_V2
|
||||
|
||||
config PRST_BLE_ENCODING_BPARASITE_V2
|
||||
bool "Uses the custom b-parasite protocol v2 for encoding advertising packets"
|
||||
|
||||
config PRST_BLE_ENCODING_BTHOME
|
||||
bool "Uses the BTHome (bthome.io) BLE encoding"
|
||||
|
||||
endchoice
|
||||
|
|
@ -31,8 +31,7 @@ int main(void) {
|
|||
sensors.soil.adc_read.voltage);
|
||||
LOG_INF("Photo: %u lx (%.3f mV)", sensors.photo.brightness,
|
||||
sensors.soil.adc_read.voltage);
|
||||
LOG_INF("Temp: %f oC (%d)", sensors.shtc3.temp_c,
|
||||
(int)sensors.shtc3.temp_c);
|
||||
LOG_INF("Temp: %f oC", sensors.shtc3.temp_c);
|
||||
LOG_INF("Humi: %.0f %%", 100.0 * sensors.shtc3.rel_humi);
|
||||
LOG_INF("--------------------------------------------------");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue