I use the following code to display a word variable which contains the value between 0 and 100
Just change maxbright for your variable and you should be fineCode:If maxbright = 100 then LCDOut $FE,$c0,#maxbright,"%" endif If maxbright =0 or maxbright <10 then LCDOut $FE,$c0,dec1 maxbright,"% " endif if maxbright >=10 and maxbright <100 then LCDOut $FE,$c0,dec2 maxbright,"% " endif
Bookmarks