Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmmakerclub/cmmc_bootmode
https://github.com/cmmakerclub/cmmc_bootmode
esp8266 esp8266-arduino
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cmmakerclub/cmmc_bootmode
- Owner: cmmakerclub
- License: mit
- Created: 2017-10-17T06:51:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T10:24:18.000Z (over 4 years ago)
- Last Synced: 2024-11-17T08:18:09.563Z (3 months ago)
- Topics: esp8266, esp8266-arduino
- Language: C++
- Size: 34.2 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMMC BootMode Library
*A simple boot mode detection for an esp8266*
CMMC BootMode Library is a library for esp8266 that you can define `INPUT_PIN` and `WAIT_TIME` and `CALLBACK` then the `CALLBACK` will be called when checking process is finished
Features
--------
* MIT LicenseUsage
--------int mode;
int BUTTON_PIN = 0;CMMC_BootMode bootMode(&mode, BUTTON_PIN);
bootMode.check([](int mode) {
if (mode == BootMode::MODE_CONFIG) {
// do config_mode
}
else if (mode == BootMode::MODE_RUN) {
// do config_mode
}
});