You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have an arduino ProMini 8MHz and I have a problem with the following code.
I receive data from time to time. But most of the time, Arduino is still being restarting. A registry dump is occurs, followed by a restart.
What could be the problem?
Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have an arduino ProMini 8MHz and I have a problem with the following code.
I receive data from time to time. But most of the time, Arduino is still being restarting. A registry dump is occurs, followed by a restart.
What could be the problem?
Thanks
void setup() {
Serial.begin(9600);
pinMode(6, OUTPUT);
digitalWrite(6, LOW);
Serial.println("LoRa Receiver");
LoRa.setSPIFrequency(2E6);
//LoRa.setPins(ss, reset, dio0);
LoRa.setPins(10,9);
if (!LoRa.begin(433E6)) {
Serial.println("Starting LoRa failed!");
while (1);
}
digitalWrite(6, HIGH);
delay(300);
digitalWrite(6, LOW);
LoRa.dumpRegisters(Serial);
}
void loop() {
// try to parse packet
int packetSize = LoRa.parsePacket();
if (packetSize) {
// received a packet
Serial.print("Received packet '");
}
delay(100);
}
Beta Was this translation helpful? Give feedback.
All reactions