Update FirmwareConstants.kt (#927)

Co-authored-by: Butterscotch! <bscotchvanilla@gmail.com>
This commit is contained in:
unlogisch04
2024-01-31 22:28:07 +01:00
committed by GitHub
parent 6ac320352b
commit 990cd1d6f2
2 changed files with 18 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ enum class IMUType(val id: UInt) {
BNO086(7u),
BMI160(8u),
ICM20948(9u),
ICM42688(10u),
;
fun getSolarType(): Int = this.id.toInt()
@@ -37,6 +38,11 @@ enum class BoardType(val id: UInt) {
LOLIN_C3_MINI(10u),
BEETLE32C32(11u),
ES32C3DEVKITM1(12u),
OWOTRACK(13u),
WRANGLER(14u),
MOCOPI(15u),
WEMOSWROOM02(16u),
DEV_RESERVED(250u),
;
override fun toString(): String {
@@ -54,6 +60,11 @@ enum class BoardType(val id: UInt) {
LOLIN_C3_MINI -> "Lolin C3 Mini"
BEETLE32C32 -> "Beetle ESP32-C3"
ES32C3DEVKITM1 -> "Espressif ESP32-C3 DevKitM-1"
OWOTRACK -> "owoTrack"
WRANGLER -> "Wrangler Joycons"
MOCOPI -> "Sony Mocopi"
WEMOSWROOM02 -> "Wemos Wroom-02 D1 Mini"
DEV_RESERVED -> "Prototype"
}
}
@@ -69,6 +80,12 @@ enum class MCUType(val id: UInt) {
UNKNOWN(0u),
ESP8266(1u),
ESP32(2u),
OWOTRACK_ANDROID(3u),
WRANGLER(4u),
OWOTRACK_IOS(5u),
ESP32_C3(6u),
MOCOPI(7u),
DEV_RESERVED(250u),
;
fun getSolarType(): Int = this.id.toInt()