Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Feb 6, 2025
1 parent 7ec1e94 commit bfe8de6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/Factory/Factory.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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!"));
Expand All @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit bfe8de6

Please sign in to comment.