{"id":13781210,"url":"https://github.com/n0m1/Sleep_n0m1","last_synced_at":"2025-05-11T14:34:46.812Z","repository":{"id":3108128,"uuid":"4134287","full_name":"n0m1/Sleep_n0m1","owner":"n0m1","description":"A library that sets the Arduino into sleep mode for a specified length of time, or until an interrupt","archived":false,"fork":false,"pushed_at":"2017-04-26T02:52:59.000Z","size":24,"stargazers_count":143,"open_issues_count":3,"forks_count":26,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-18T21:26:22.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://n0m1.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n0m1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-25T08:12:53.000Z","updated_at":"2023-09-13T23:07:13.000Z","dependencies_parsed_at":"2022-08-06T13:15:30.398Z","dependency_job_id":null,"html_url":"https://github.com/n0m1/Sleep_n0m1","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0m1%2FSleep_n0m1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0m1%2FSleep_n0m1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0m1%2FSleep_n0m1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0m1%2FSleep_n0m1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n0m1","download_url":"https://codeload.github.com/n0m1/Sleep_n0m1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253580325,"owners_count":21930924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:23.922Z","updated_at":"2025-05-11T14:34:46.525Z","avatar_url":"https://github.com/n0m1.png","language":"C++","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"Sleep_n0m1\n===========\n\nArduino Library to place the arduino into sleep mode for a specific length of time, or a specific number of sleep cycles.\n\n#### Authors\n\n* [Noah Shibley](https://github.com/nullboundary)\n* [Michael Grant](http://krazatchu.ca)\n\n#### Dependencies\n* none\n\n#### Supported Devices\n\n* Uno - Tested\n* Leonardo - Tested\n* Pro Mini - Tested\n* Nano - Tested\n* Mega - Tested\n* Zero - Not supported\n* Due - Not supported\n\n#### List of Methods\n```cpp\n\n//------------------------------------------------------\n// Description: sets the Arduino into idle Mode sleep,\n// the least power saving, The idle mode stops the MCU\n// but leaves peripherals and timers running.\n//------------------------------------------------------\nvoid idleMode();\n\n//------------------------------------------------------\n// Description: sets the Arduino into adc Mode sleep,\n// This mode makes the MCU enter ADC Noise Reduction mode,\n// stopping the CPU but allowing the ADC, the external interrupts,\n// the 2-wire Serial Interface address watch, Timer/Counter2\n// and the Watchdog to continue operating.\n//------------------------------------------------------\nvoid adcMode();\n\n//------------------------------------------------------\n// Description: sets the Arduino into power Save Mode sleep,\n// The timer crystal will continue to operate in this mode,\n// Timer2 still active.\n//------------------------------------------------------\nvoid pwrSaveMode();\n\n//------------------------------------------------------\n// Description: sets the Arduino into extStandby Mode sleep,\n// This mode is identical to Power-save with the exception\n// that the Oscillator is kept running for fast wake up\n//------------------------------------------------------\nvoid extStandbyMode();\n\n//------------------------------------------------------\n// Description: sets the Arduino into standby Mode sleep,\n// This mode is identical to Power-down with the exception\n// that the Oscillator is kept running for fast wake up\n//------------------------------------------------------\nvoid standbyMode();\n\n//------------------------------------------------------\n// Description: sets the Arduino into power Down Mode sleep,\n// The most power saving, all systems are powered down\n// except the watch dog timer and external reset\n//------------------------------------------------------\nvoid pwrDownMode();\n\n//------------------------------------------------------  \n// Description: Works like the Arduino delay function, sets the\n// Arduino into sleep mode for a specified time.\n// Parameters: (unsigned long) time in ms of the sleep cycle\n//------------------------------------------------------  \nvoid sleepDelay(unsigned long sleepTime);\n\n//------------------------------------------------------\n// Description: Works like the Arduino delay function, sets the\n// Arduino into sleep mode for a specified time.\n// Parameters: (unsigned long) time in ms of the sleep cycle\n//            (boolean) prevents the Arduino from entering sleep\n//------------------------------------------------------\nvoid sleepDelay(unsigned long sleepTime,boolean \u0026abortCycle);\n\n//------------------------------------------------------\n// Description: the WDT needs to be calibrated against timer 0\n// periodically to keep the sleep time accurate. Default calibration\n// occurs every 100 wake/sleep cycles. recalibrate too often will\n// waste power and too rarely will make the sleep time inaccurate.\n// Parameters: (int) set the # of wake/sleep cycles between calibrations\n//------------------------------------------------------\nvoid setCalibrationInterval(int interval);\n\n//------------------------------------------------------\n// Description: set the Arduino into sleep mode until an interrupt is\n// triggered. The interrupt pin is passed in as parameter\n// Parameters: (int) interrupt pin value, 2, 3, etc, see attachinterrupt()\n//      (int) mode of trigger, HIGH,LOW,RISING,CHANGE\n//------------------------------------------------------\nvoid sleepPinInterrupt(int interruptPin,int mode);\n\n//------------------------------------------------------\n// Deprecated, please use sleepPinInterrupt()\n// Description: set the Arduino into sleep mode until an interrupt is\n// triggered. The interrupts are passed in as parameters\n// Parameters: (int) interrupt value, 0, 1, etc, see attachinterrupt()\n//      (int) mode of trigger, HIGH,LOW,RISING,CHANGE\n//------------------------------------------------------\nvoid sleepInterrupt(int interrupt,int mode);\n\n```\t    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0m1%2FSleep_n0m1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0m1%2FSleep_n0m1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0m1%2FSleep_n0m1/lists"}