From bfe8de60b33827adb0fdd22edc9c37e3c7e3e4a6 Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Thu, 6 Feb 2025 14:18:36 +0800 Subject: [PATCH] Update example --- examples/Factory/Factory.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/Factory/Factory.ino b/examples/Factory/Factory.ino index ef235a9..415e39a 100644 --- a/examples/Factory/Factory.ino +++ b/examples/Factory/Factory.ino @@ -546,7 +546,7 @@ void setup() display.flipScreenVertically(); Serial.printf("[%s]:", CONFIG_RADIO_TYPE); - Serial.print(F(" Initializing ... ")); + Serial.print(F(" Initializing Radio ... ")); int state = radio.begin(); if ( state == RADIOLIB_ERR_NONE) { Serial.println(F("success!")); @@ -555,6 +555,8 @@ void setup() Serial.println(F("failed!")); } + Serial.printf("Freq:%.2f TxPower:%d Bandwidth:%.2f\n", CONFIG_RADIO_FREQ, CONFIG_RADIO_OUTPUT_POWER, CONFIG_RADIO_BW); + #if defined(RADIO_RX_PIN) && defined(RADIO_TX_PIN) //The SX1280 version needs to set RX, TX antenna switching pins radio.setRfSwitchPins(RADIO_RX_PIN, RADIO_TX_PIN); @@ -725,6 +727,9 @@ float current_freq = CONFIG_RADIO_FREQ; void power_key_pressed() { +#ifdef JAPAN_MIC + return; +#endif // Turn on/off display // static bool isOn = true; // isOn ? display.displayOff() : display.displayOn();