You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
399 B
22 lines
399 B
/* |
|
Library for Software Serial over RS485 connection |
|
Created by Stepan Richter, November 2023 |
|
*/ |
|
|
|
#ifndef SoftRS485_h |
|
#define SoftRS485_h |
|
|
|
#include "Arduino.h" |
|
|
|
class SoftRS485{ |
|
public: |
|
void begin(int RO, int nRE, int DE, int DI); |
|
void bam(); |
|
static SoftRS485 singleton(); |
|
private: |
|
static void isr(); |
|
static SoftRS485 instance; |
|
int _RO, _RE, _DE, _DI; |
|
}; |
|
|
|
#endif
|
|
|