Enum not part of MicroPython? #16309
Replies: 4 comments
-
nope. There's some discussion in this issue: Request for package: micropython-enum #269. A simple implementation is included in the discussion that may work for you. As ever, check mim if |
Beta Was this translation helpful? Give feedback.
-
Yeah, I tried 'mip' and when it failed, figured it was out of scope. I did the typical cheat, created a static class...
Cheesy but still just 'named' constants. Oh for the days of 'C' with the wonderful '#define' statements! LOL |
Beta Was this translation helpful? Give feedback.
-
You can take a look at this thread: https://forum.micropython.org/viewtopic.php?t=9674 |
Beta Was this translation helpful? Give feedback.
-
Strictly speaking the lack of a true enum in MIcroPython is not a big deal... just a surprise it did not exist, when I tripped over it. |
Beta Was this translation helpful? Give feedback.
-
Enum not part of MicroPython?
Beta Was this translation helpful? Give feedback.
All reactions