https://github.com/zerasul/snoozelib
Low Power Mode Library for Arduino
https://github.com/zerasul/snoozelib
Last synced: 8 months ago
JSON representation
Low Power Mode Library for Arduino
- Host: GitHub
- URL: https://github.com/zerasul/snoozelib
- Owner: zerasul
- License: gpl-3.0
- Created: 2015-04-24T11:57:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-19T17:06:52.000Z (about 11 years ago)
- Last Synced: 2023-08-06T12:21:39.164Z (almost 3 years ago)
- Language: C++
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snoozeLib
Low Power Mode Library for Arduino
SnoozeLib: This Arduino Library make the use of Low Power Mode very Easy. This library Helps you make your arduino based microcontroller use the Low Power Mode it use the WatchDog Functionallity and sleep the CPU clock for low consumption.
Based on the library Narcoleptic: [https://code.google.com/p/narcoleptic/](https://code.google.com/p/narcoleptic/)
This library is tested on Arduino UNO and Arduino Mega(atmel 328p and atmel Mega 2560).
## Reference
- snooze(long milliseconds)
this function sleep the CPU for the specified Milliseconds or if the function _wakeup_ is called. Example of use:
```c
snoozeLib.snooze(10000);//Sleeps for 10 seconds.
```
- wakeup()
this function wake the CPU and disable the WatchDog.
```c
snoozeLib.wakeup();
```
---
License GNU General Public License v3.0.