RadioLibSmol/src/modules/JDY08/JDY08.cpp
2020-07-05 10:01:52 +02:00

16 lines
326 B
C++

#if !defined(_RADIOLIB_JDY08_H) && !defined(RADIOLIB_EXCLUDE_JDY08)
#include "JDY08.h"
JDY08::JDY08(Module* mod) : ISerial(mod) {
}
void JDY08::begin(long speed) {
// set module properties
char lf[3] = "";
memcpy(_mod->AtLineFeed, lf, strlen(lf));
_mod->baudrate = speed;
_mod->init(RADIOLIB_USE_UART);
}
#endif