Updated template implementation file

This commit is contained in:
jgromes 2020-07-04 21:13:16 +02:00
parent 31c37536b9
commit 93f1bd51d3

View file

@ -1,4 +1,5 @@
#include "<module_name>.h" #include "<module_name>.h"
#if !defined(RADIOLIB_EXCLUDE_<module_name>)
<module_name>::<module_name>(Module* mod) { <module_name>::<module_name>(Module* mod) {
/* /*
@ -12,10 +13,10 @@ int16_t <module_name>::begin() {
"begin" method implementation MUST call the "init" method with appropriate settings. "begin" method implementation MUST call the "init" method with appropriate settings.
*/ */
_mod->init(); _mod->init();
/* /*
"begin" method SHOULD implement some sort of mechanism to verify the connection between Arduino and the module. "begin" method SHOULD implement some sort of mechanism to verify the connection between Arduino and the module.
For example, sending AT command for UART modules, or reading a version register for SPI/I2C modules For example, sending AT command for UART modules, or reading a version register for SPI/I2C modules
*/ */
} }