avr/sleep.h library for Adafruit Ultimate GPS

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
daverizk
 
Posts: 15
Joined: Fri Sep 05, 2014 9:20 am

avr/sleep.h library for Adafruit Ultimate GPS

Post by daverizk »

Hi, Does anyone know where I might find the "avr/sleep.h" library, download for the Adafruit Ultimate GPS. I have not been able to find it anywhere. Thank you!

User avatar
rcomito
 
Posts: 35
Joined: Tue Jan 28, 2014 9:03 am

Re: avr/sleep.h library for Adafruit Ultimate GPS

Post by rcomito »

Hi Dave,

According to the documentation for the GPS chip:

http://www.adafruit.com/datasheets/PMTK_A08.pdf (page 15):

you can put the GPS module into standby by sending:

$PMTK161,0*28<CR><LF>

Rick Comito

User avatar
Barry914
 
Posts: 448
Joined: Sun Dec 08, 2013 1:26 pm

Re: avr/sleep.h library for Adafruit Ultimate GPS

Post by Barry914 »

It's part of the standard IDE environment. You just need

Code: Select all

#include <avr/sleep.h>
in your sketch

User avatar
daverizk
 
Posts: 15
Joined: Fri Sep 05, 2014 9:20 am

Re: avr/sleep.h library for Adafruit Ultimate GPS

Post by daverizk »

Hi, Thanks for your reply. I know about the $PMTK161,0*28<CR><LF> command, but I need avr/sleep.h for other Ultimate Gps sketches. I cannot find it in my Arduino library. Thanks.

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: avr/sleep.h library for Adafruit Ultimate GPS

Post by adafruit_support_mike »

That header file is included in the 'standard library path' which comes as part of the Arduino IDE.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”