Giter Site home page Giter Site logo

avr_sleep's Introduction

AVR_sleep Library

The AVR_sleep library provides a simple interface to the various sleep modes available (and usable) on an Arduino running with an ATmega328P and probably works on an ATmega168 as well---they are extremely similar.

The code has been tested on projects created in the Arduino IDE version 1.8.13 onwards including 2.2.1, and also in PlatformIO (platformio.org), with no problems on either system.

Arduino

To install the library:

  • Click Sketch->Include Library->Add .ZIP Library;
  • Navigate to where the zip file for the library is located on your system;
  • Select it and click the OK button;
  • Follow the prompts.

PlatformIO

As of the time of typing, I have not built this library into a format suitable for uploading to the official PlatformIO Library Registry.

  • Unzip the downloaded zip file.
  • In your project's directory, create a new directory under lib, named AVR_sleep.
  • Copy files from the src directory of the extracted zip file to the new directory you created above.
  • That's it. You only need to #include the appropriate header file in your code, and the library will be used without requiring any lib_deps settings. Easy!

Norman Dunbar

15 September 2020.

avr_sleep's People

Contributors

normandunbar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.