AltmodeFriend
AltmodeFriend copied to clipboard
[cleanup] change register bits to consts
what do you think about this?
FWIW, reading https://docs.micropython.org/en/latest/reference/constrained.html#compilation-phase prompted me to be curious about the memory usage of these changes.
And prefixing with a _ to allow inlining saves a bit of this increase.
Memory usage of previous 'simple' constants: GC: total: 192064, used: 45984, free: 146080
Memory usage of 'improved' constants: GC: total: 192064, used: 53856, free: 138208
Memory usage of these underscored constants: GC: total: 192064, used: 49712, free: 142352