Added powerDown().

This commit is contained in:
maniacbug 2011-05-10 15:16:06 -07:00
parent 72dc77467e
commit b697fd4e79
2 changed files with 15 additions and 0 deletions

View File

@ -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
View File

@ -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
*