There are 2 features of named (symbol) constants that I find annoying. First, it's not possible to define them using more than one arithmetic operation. So I have to use several extra to achieve a fairly straightforward objective. In the snippet blow, numc1, numc2 and numc3 are parameters that only exist so I can calculate other constants.
More of a problem, if I hover over a name in the program listing (after syntax checking or downloading) then the simple constant HOWMANYLEDS (and the all-numeric numc1) shows its value but all those derived using other named constants show just the name of the first part of their calculation.
Can these 2 limitations be removed?
More of a problem, if I hover over a name in the program listing (after syntax checking or downloading) then the simple constant HOWMANYLEDS (and the all-numeric numc1) shows its value but all those derived using other named constants show just the name of the first part of their calculation.
Can these 2 limitations be removed?
Code:
Symbol HOWMANYLEDS = 48
SYMBOL numc1 = 128 / 6
SYMBOL numcol= numc1-2
SYMBOL stp = 255/numcol
SYMBOL maxcol= numcol*stp
SYMBOL numc2 = numc1-1
SYMBOL numc3 = numc2*6
SYMBOL maxptr= numc3-2