Skip to content

Commit

Permalink
SI4844 Arduino Library
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Lima Caratti committed Jul 9, 2020
1 parent e2f3907 commit 0ee949a
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ float currentFrequency;

SI4844 radio;

void handle_interrupt() {
radio.setStatusInterruptFromDevice(true);
}


void setup()
{

Expand All @@ -57,9 +52,10 @@ void setup()
oled.clear();
*/

attachPCINT(digitalPinToPCINT(INT_PIN), handle_interrupt, CHANGE);
// interrupt_hundler is an static void function implemented into the library to deal with device control interrupt.
attachPCINT(digitalPinToPCINT(INT_PIN), interrupt_hundler, CHANGE);

// -1 means this sketch will handle the interrupt.
// -1 means this sketch will handle the interrupt instead the library.
radio.setup(RST_PIN, -1, currentBand);

// Comment the line above and uncomment the line bellow to debug. See the function debugDevice dicumentation
Expand Down

0 comments on commit 0ee949a

Please sign in to comment.