-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
736 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
#pragma once | ||
|
||
#ifndef MAIN_INCLUDE // Avoid showing twice | ||
|
||
#ifndef MAIN_INCLUDE //Avoid showing twice | ||
#pragma message ("Compiling For " ARDUINO_BOARD) | ||
#endif | ||
#pragma message("Compiling For " ARDUINO_BOARD) | ||
|
||
#ifdef POWER_KEEP_PIN | ||
#pragma message("Using Power PIN " XSTR(POWER_KEEP_PIN)) | ||
#define BOARD_INIT_POWER \ | ||
pinMode(POWER_KEEP_PIN, OUTPUT); \ | ||
digitalWrite(POWER_KEEP_PIN, HIGH); // keep pin12 high to keep board awake | ||
|
||
#ifndef MAIN_INCLUDE //Avoid showing twice | ||
#pragma message ("Using Power PIN " XSTR(POWER_KEEP_PIN)) | ||
#endif | ||
#define BOARD_SHUTDOWN_POWER \ | ||
digitalWrite(POWER_KEEP_PIN, LOW); | ||
#else | ||
|
||
//keep pin12 high to keep board awake | ||
#define BoardInit \ | ||
pinMode(POWER_KEEP_PIN, OUTPUT);\ | ||
digitalWrite(POWER_KEEP_PIN, HIGH); | ||
#define BOARD_INIT_POWER | ||
#define BOARD_INIT_SHUTDOWN | ||
|
||
#define BoardShutdown \ | ||
digitalWrite(POWER_KEEP_PIN, LOW); | ||
#endif | ||
#endif //POWER_KEEP_PIN | ||
|
||
#endif // MAIN_INCLUDE | ||
|
||
|
||
#ifndef BoardInit | ||
#define BoardInit | ||
#endif | ||
#define BoardInit \ | ||
BOARD_INIT_POWER | ||
|
||
#ifndef BoardShutdown | ||
#define BoardShutdown | ||
#endif | ||
#define BoardShutdown \ | ||
BOARD_SHUTDOWN_POWER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.