kopia lustrzana https://github.com/jgromes/RadioLib
[nRF24] Fixed missing pinMode for IRQ (#252)
rodzic
9c73e9b2d7
commit
3205bd1c72
|
@ -10,6 +10,7 @@ int16_t nRF24::begin(int16_t freq, int16_t dataRate, int8_t power, uint8_t addrW
|
|||
_mod->SPIreadCommand = NRF24_CMD_READ;
|
||||
_mod->SPIwriteCommand = NRF24_CMD_WRITE;
|
||||
_mod->init(RADIOLIB_USE_SPI);
|
||||
Module::pinMode(_mod->getIrq(), INPUT);
|
||||
|
||||
// set pin mode on RST (connected to nRF24 CE pin)
|
||||
Module::pinMode(_mod->getRst(), OUTPUT);
|
||||
|
|
Ładowanie…
Reference in New Issue