https://github.com/cmmakerclub/cmmc_bootmode
https://github.com/cmmakerclub/cmmc_bootmode
esp8266 esp8266-arduino
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cmmakerclub/cmmc_bootmode
- Owner: cmmakerclub
- License: mit
- Created: 2017-10-17T06:51:01.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T10:24:18.000Z (over 5 years ago)
- Last Synced: 2025-03-11T13:50:12.675Z (8 months ago)
- Topics: esp8266, esp8266-arduino
- Language: C++
- Size: 34.2 KB
- Stars: 0
- Watchers: 4
- 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
}
});