1
0
mirror of https://github.com/arduino-libraries/ArduinoLowPower.git synced 2025-04-19 11:42:14 +03:00

54 Commits

Author SHA1 Message Date
dependabot[bot]
06a0d9f257
Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 14:18:23 +00:00
Alexander Entinger
b615a89714
Remove support for ArduinoCore-Primo. (#55)
The board is retired and the corresponding core (https://github.com/arduino/ArduinoCore-primo) has been archived. Considering that no one is going to maintain the low power code for nRF52/Primo its better to get rid of it alltogether (and no longer advertise compatibility to 'nrf52' which - imho rightfully - seems to confuse a lot of people.
2023-01-02 09:22:47 +01:00
per1234
7fc3c446da
Merge pull request #54 from arduino-libraries/dependabot/github_actions/carlosperate/download-file-action-2
Bump carlosperate/download-file-action from 1 to 2
2022-10-24 10:28:13 -07:00
dependabot[bot]
650712354d
Bump carlosperate/download-file-action from 1 to 2
Bumps [carlosperate/download-file-action](https://github.com/carlosperate/download-file-action) from 1 to 2.
- [Release notes](https://github.com/carlosperate/download-file-action/releases)
- [Commits](https://github.com/carlosperate/download-file-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: carlosperate/download-file-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-24 14:15:27 +00:00
per1234
d3337f825d
Merge pull request #52 from arduino-libraries/dependabot/github_actions/geekyeggo/delete-artifact-2
Bump geekyeggo/delete-artifact from 1 to 2
2022-10-12 07:34:31 -07:00
dependabot[bot]
4cc00d3af7
Bump geekyeggo/delete-artifact from 1 to 2
Bumps [geekyeggo/delete-artifact](https://github.com/geekyeggo/delete-artifact) from 1 to 2.
- [Release notes](https://github.com/geekyeggo/delete-artifact/releases)
- [Commits](https://github.com/geekyeggo/delete-artifact/compare/v1...v2)

---
updated-dependencies:
- dependency-name: geekyeggo/delete-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-12 14:10:38 +00:00
per1234
a62f443226
Merge pull request #48 from arduino-libraries/dependabot/github_actions/actions/download-artifact-3
Bump actions/download-artifact from 2 to 3
2022-04-11 09:48:11 -07:00
per1234
5f1807191c
Merge pull request #49 from arduino-libraries/dependabot/github_actions/actions/upload-artifact-3
Bump actions/upload-artifact from 2 to 3
2022-04-11 09:48:04 -07:00
dependabot[bot]
f20f2e109f
Bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 14:33:00 +00:00
dependabot[bot]
1603da8c9b
Bump actions/download-artifact from 2 to 3
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 14:32:58 +00:00
per1234
197cc1948f
Merge pull request #47 from arduino-libraries/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-03-02 06:37:49 -08:00
dependabot[bot]
131dafec73
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 14:13:31 +00:00
per1234
1693ae4255
Add GitHub Actions workflow to synchronize with shared repository labels (#46)
On every push that changes relevant files, and periodically, configure the repository's issue and pull request labels
according to the universal, shared, and local label configuration files.
2022-01-10 10:01:17 +01:00
Karl Söderby
4396dff1a7
Merge pull request #44 from arduino-libraries/karlsoderby/add-docs
Add documentation
2021-09-21 14:54:02 +02:00
Karl Söderby
fc955aeada moved examples 2021-09-21 14:52:24 +02:00
Karl Söderby
aeb714964d Added docs 2021-09-21 14:51:33 +02:00
Alexander Entinger
85b2a8b5c6
Merge pull request #41 from arduino-libraries/ci
Use GitHub Actions for continuous integration
2021-04-12 12:10:38 +02:00
per1234
609afddcc5 Report changes in memory usage that would result from merging a PR
On creation or commit to a pull request, a report of the resulting change in memory usage of the examples will be
commented to the PR thread.
2021-04-12 02:42:35 -07:00
per1234
0e89b28f57 Add "smoke test" examples compilation CI workflow
On every push or pull request that affects library source or example files, and periodically, compile all example
sketches for the specified boards.
2021-04-12 02:42:35 -07:00
per1234
8c055a48f0 Add CI workflow to do Arduino project-specific linting
On every push, pull request, and periodically, run Arduino Lint to check for common problems not related to the project
code.
2021-04-12 02:42:35 -07:00
per1234
fbee85bfbc Correct typos in comments and documentation 2021-04-12 02:42:35 -07:00
per1234
7b1e211b79 Add CI workflow to check for commonly misspelled words
On every push, pull request, and periodically, use the codespell-project/actions-codespell action to check for commonly
misspelled words.

In the event of a false positive, the problematic word should be added, in all lowercase, to the ignore-words-list field
of ./.codespellrc. Regardless of the case of the word in the false positive, it must be in all lowercase in the ignore
list. The ignore list is comma-separated with no spaces.
2021-04-12 02:36:04 -07:00
per1234
cd47d44024 Configure Dependabot to check for outdated actions used in workflows
Dependabot will periodically check the versions of all actions used in the repository's workflows. If any are found to
be outdated, it will submit a pull request to update them.
NOTE: Dependabot's PRs will sometimes try to pin to the patch version of the action (e.g., updating `uses: foo/bar@v1`
to `uses: foo/bar@v2.3.4`). When the action author has provided a major version ref, use that instead
(e.g., `uses: foo/bar@v2`). Dependabot will automatically close its PR once the workflow has been updated.
More information:
https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot
2021-04-12 02:25:08 -07:00
Martino Facchin
d70192271e
Release 1.2.2 1.2.2 2020-12-21 10:39:43 +01:00
Martino Facchin
b44168f223
Make the library compatible with both API and non API cores (#35)
Fixes https://github.com/arduino/ArduinoCore-samd/issues/578
2020-12-17 10:54:44 +01:00
Bhargav Patel
043dedba33
Added README.md in ArduinoLowPower (#26)
* Added README.md in ArduinoLowPower

* Update README.md

Thank you for modification.

Co-Authored-By: per1234 <accounts@perglass.com>

* Update README.md

Co-Authored-By: per1234 <accounts@perglass.com>

Co-authored-by: per1234 <accounts@perglass.com>
2020-12-17 09:32:47 +01:00
per1234
39d72b123a
Use www subdomain in arduino.cc URLs (#34)
www.arduino.cc is Arduino's preferred url.
2020-12-17 09:31:38 +01:00
Martino Facchin
6fd308af4a
Merge pull request #25 from Lincoln-Agritech/master
Add support for ADC wakeup interrupt on SAMD21
2020-03-10 11:03:09 +01:00
Simon Knopp
fa71703f58 Add support for ADC wakeup interrupt on SAMD21
This can be used to configure the ADC window interrupt on the SAMD21. It
uses OSCULP32K via GCLK6 to clock the ADC while in sleep mode (the same
as used for the EIC).

Note that attachAdcInterrupt()/detachAdcInterrupt() should be called
immediately before/after LowPower.sleep() otherwise analogRead() will
not work as expected.

There is also an example (AdcWakeup.ino) which is much like the
ExternalWakeup example but uses the ADC interrupt instead.
2020-03-02 10:02:11 +13:00
Martino Facchin
c1b24fb456
Merge pull request #24 from per1234/fix-day-sleeps
Allow sleep durations of 1 day or longer
2020-02-21 14:44:07 +01:00
per1234
fa5c24937c Allow sleep durations of 1 day or longer
Previously, sleep durations "overflowed" at one day, resulting in a maximum sleep duration of 1 millisecond less than a day.
2020-02-20 00:57:37 -08:00
sslupsky
892594adbc Fix SysTick timer lockup when waking from sleep (#17)
* fix SysTick timer lockup when waking from sleep
2019-05-14 09:56:55 +02:00
Cristian Maglie
4caff779d9 Added dependency 1.2.1 2019-03-14 00:58:07 +01:00
Stefan Lehmann
b38a5bc50c Add support for boards with different name of serial USB connection (#6)
* Replace SerialUSB by SERIAL_PORT_USBVIRTUAL

Support boards where USB serial is named differently. E.g. the
Adafruit Feather M0 uses Serial1 as name for serial USB port.
2018-08-20 15:43:46 +02:00
Martino Facchin
5399b36207 Update to version 1.2.0 1.2.0 2017-07-13 17:01:41 +02:00
Martino Facchin
8cf4c737dd [SAMD] Disable USB on standby() 2017-07-13 17:01:03 +02:00
Martino Facchin
5456a1f698 [Examples] Avoid spurious wakeup 2017-07-13 16:56:25 +02:00
Martino Facchin
71ceedc1d7 publish 1.1.0 1.1.0 2017-04-20 14:43:33 +02:00
chiararuggeri
21d2f7527f Added nRF52 compatibility
Waking from deepSleep() is comparable to an hard reset; the sketch won't restart from the sleep invocation but the wakeuup source can be retrieved with wakeupReason()
2017-04-20 14:38:15 +02:00
chiararuggeri
fcbf16f6a3 Proposed lowercase name for companion callback in sketch 2017-04-20 14:38:15 +02:00
Martino Facchin
10471dd7f3 Sleep also triggers USB subsystem standly
Requires SAMD core >= 1.6.14
1.0.0
2017-04-04 11:01:57 +02:00
Martino Facchin
e0fcfbd199 Add missing attachInterruptWakeup keyword 2017-04-04 11:01:37 +02:00
Martino Facchin
9204b58012 Target only SAMD architecture 2017-03-13 12:58:48 +01:00
Martino Facchin
0f7f5904ad [SAMD] use RTC.begin(false) for new RTC library behaviour 2017-01-17 16:37:34 +01:00
Martino Facchin
562190f552 Add APIs for boards with companion chip (eg. Tian) 2016-12-06 18:43:05 +01:00
Martino Facchin
5175ae9fd2 [ARC32] add missing includes 2016-12-06 18:42:55 +01:00
Martino Facchin
3e4915e8c9 Import latest code from @bigdinotech 2016-12-06 17:10:13 +01:00
Martino Facchin
7304fe0419 [ARC32] RTC wakeup from idle() works
code from https://github.com/bigdinotech/Arduino101Power/
2016-11-14 17:24:10 +01:00
Martino Facchin
e99fcefe8b Initial ARC32 implementation
The includes and relevant (non wrapper) functions are borrowed from Zephyr 1.5.0

The implementation is still broken:
- an RTC driver is still missing, so no timed wakeup possible
- only the AON pins configured as LEVEL can wakeup the processor
  on Arduino101, the only AON broken out is RESET button
  Changing the main loop in CODK-A allows operating the button without triggering a reboot. However, the board doesn't wakeup from deep sleep (am I missing something maybe?)
2016-11-11 16:20:30 +01:00
Martino Facchin
63b24bed79 Move SAMD implementation to proper file 2016-11-11 16:18:51 +01:00