Added SPI-only Module contructor
This commit is contained in:
parent
90b7fe5a84
commit
3b51c3b661
2 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue