first commit
This commit is contained in:
19
Sleep_B/Sleep_B.ino
Executable file
19
Sleep_B/Sleep_B.ino
Executable file
@@ -0,0 +1,19 @@
|
||||
#include <avr/sleep.h>
|
||||
|
||||
void setup ()
|
||||
{
|
||||
|
||||
//SLEEP_MODE_IDLE: 15 mA
|
||||
//SLEEP_MODE_ADC: 6.5 mA
|
||||
//SLEEP_MODE_PWR_SAVE: 1.62 mA
|
||||
//SLEEP_MODE_EXT_STANDBY: 1.62 mA
|
||||
//SLEEP_MODE_STANDBY : 0.84 mA
|
||||
//SLEEP_MODE_PWR_DOWN : 0.36 mA
|
||||
|
||||
set_sleep_mode (SLEEP_MODE_PWR_DOWN);
|
||||
sleep_enable();
|
||||
sleep_cpu ();
|
||||
} // end of setup
|
||||
|
||||
void loop () { }
|
||||
|
||||
Reference in New Issue
Block a user