Merge branch 'master' of github.com:meshtastic/Meshtastic-device

This commit is contained in:
Sacha Weatherstone
2022-05-07 13:34:36 +10:00
15 changed files with 33 additions and 14 deletions

View File

@@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "configuration.h"
#ifndef NO_SCREEN
#include <OLEDDisplay.h>
#include "GPS.h"
@@ -1665,3 +1666,4 @@ int Screen::handleUIFrameEvent(const UIFrameEvent *event)
}
} // namespace graphics
#endif // NO_SCREEN

View File

@@ -1,6 +1,7 @@
#pragma once
#ifdef NO_SCREEN
#include "power.h"
namespace graphics
{
// Noop class for boards without screen.
@@ -15,6 +16,8 @@ class Screen
void adjustBrightness(){}
void doDeepSleep() {}
void forceDisplay() {}
void startBluetoothPinScreen(uint32_t pin) {}
void stopBluetoothPinScreen() {}
};
}