kopia lustrzana https://github.com/jgromes/RadioLib
Added SPI-only Module contructor
rodzic
90b7fe5a84
commit
3b51c3b661
|
@ -1,5 +1,13 @@
|
|||
#include "Module.h"
|
||||
|
||||
Module::Module(int cs, int int0, int int1) {
|
||||
_cs = cs;
|
||||
_tx = -1;
|
||||
_rx = -1;
|
||||
_int0 = int0;
|
||||
_int1 = int1;
|
||||
}
|
||||
|
||||
Module::Module(int cs, int tx, int rx, int int0, int int1) {
|
||||
_cs = cs;
|
||||
_tx = tx;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
class Module {
|
||||
public:
|
||||
Module(int cs, int int0, int int1);
|
||||
Module(int cs, int tx, int rx, int int0, int int1);
|
||||
|
||||
SoftwareSerial* ModuleSerial;
|
||||
|
|
Ładowanie…
Reference in New Issue