Added powerDown().
This commit is contained in:
parent
72dc77467e
commit
b697fd4e79
2 changed files with 15 additions and 0 deletions
7
RF24.cpp
7
RF24.cpp
|
@ -333,6 +333,13 @@ void RF24::stopListening(void)
|
|||
|
||||
/******************************************************************/
|
||||
|
||||
void RF24::powerDown(void)
|
||||
{
|
||||
write_register(CONFIG,0);
|
||||
}
|
||||
|
||||
/******************************************************************/
|
||||
|
||||
boolean RF24::write( const void* buf, uint8_t len )
|
||||
{
|
||||
boolean result = false;
|
||||
|
|
8
RF24.h
8
RF24.h
|
@ -223,6 +223,14 @@ public:
|
|||
*/
|
||||
void stopListening(void);
|
||||
|
||||
/**
|
||||
* Enter low-power mode
|
||||
*
|
||||
* To return to normal power mode, either write() some data or
|
||||
* startListening().
|
||||
*/
|
||||
void powerDown(void);
|
||||
|
||||
/**
|
||||
* Write to the open writing pipe
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue