Is there a way to handle enum classes in micropython?
I am porting a library which has an enum class.
Code: Select all
class ModemConfig(Enum):
Bw125Cr45Sf128 = (0x72, 0x74, 0x04)
Bw500Cr45Sf128 = (0x92, 0x74, 0x04)
Bw31_25Cr48Sf512 = (0x48, 0x94, 0x04)
Bw125Cr48Sf4096 = (0x78, 0xc4, 0x0c)
Thank you
Martyn
Sent from my LLD-L31 using Tapatalk