Skip to content

A modified version of the Arduino built-in SoftwareSerial library to allow another library to call the interrupts for it.

License

Notifications You must be signed in to change notification settings

EnviroDIY/SoftwareSerial_ExtInts

Repository files navigation

SoftwaterSerial_ExtInts

A modified version of the Arduino built-in SoftwareSerial_ExtInts library which depends on an external Interrupt library to call the interrupts for it.

This will NOT work alone. To work you must first import another interrupt library and use the functions in that library to set up the interrupts for this like so:

#include <EnableInterrupt.h>
#include <SoftwareSerial_ExtInts.h>

// Create the software serial object
SoftwareSerial_ExtInts mySerial(RXpin, TXpin); // RX, TX

void setup() {
  // Enable interrupts for the recieve pin
  enableInterrupt(RXpin, SoftwareSerial_ExtInts::handle_interrupt, CHANGE);

  // set the data rate for the SoftwareSerial_ExtInts port
  mySerial.begin(BAUD);
}

About

A modified version of the Arduino built-in SoftwareSerial library to allow another library to call the interrupts for it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages