Getting an RadioHead Init failure on HamShield: LoRa Edition? You will need this simple piece of code

Getting an RadioHead Init failure on HamShield: LoRa Edition? You will need this simple piece of code

Getting an initialization failure? Don't worry, there is an easy fix to any code making use of the RadioHead SX1276 libraries.

Before you can initialize the radio, you need to perform the reset procedure. It can be done with a very simple sequence of digitalWrite() functions. Place this piece of code before your rf95.init() statement in your setup() function:

pinMode(3,OUTPUT);
digitalWrite(3, LOW);
delay(10);
digitalWrite(3, HIGH);
delay(10);

And that is it!


1 comment

  • Jim

    I will add this to the init function. Thank you!

    Jim

Leave a comment

Please note, comments must be approved before they are published