mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-06 08:46:04 +08:00
15ee981d5b
date: 2022-05-24T01:48:37 master commit: 71901c94dbbaa2f9f156a80c14cc7ea65219fc7c
25 lines
567 B
C++
25 lines
567 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
#include <fstream>
|
|
|
|
// no-op base hw class
|
|
class HardwareNone {
|
|
public:
|
|
static constexpr float MAX_VOLUME = 0.7;
|
|
static constexpr float MIN_VOLUME = 0.2;
|
|
|
|
static std::string get_os_version() { return ""; }
|
|
|
|
static void reboot() {}
|
|
static void poweroff() {}
|
|
static void set_brightness(int percent) {}
|
|
static void set_display_power(bool on) {}
|
|
|
|
static bool get_ssh_enabled() { return false; }
|
|
static void set_ssh_enabled(bool enabled) {}
|
|
|
|
static bool PC() { return false; }
|
|
static bool TICI() { return false; }
|
|
};
|