You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
30 lines
603 B
Python
30 lines
603 B
Python
"""
|
|
DeviceInfo - Device hardware information
|
|
"""
|
|
|
|
|
|
class DeviceInfo:
|
|
"""Device hardware information."""
|
|
|
|
hardware_id = "missing-hardware-info"
|
|
|
|
@classmethod
|
|
def set_hardware_id(cls, device_id):
|
|
"""
|
|
Set the device/hardware identifier (called during boot).
|
|
|
|
Args:
|
|
device_id: The hardware identifier string
|
|
"""
|
|
cls.hardware_id = device_id
|
|
|
|
@classmethod
|
|
def get_hardware_id(cls):
|
|
"""
|
|
Get the hardware identifier.
|
|
|
|
Returns:
|
|
str: The hardware identifier
|
|
"""
|
|
return cls.hardware_id
|