The analogRead() function
returns a value between 0 and 1023, so the small values you're checking
are not displayed. You may want to map the analog values to S meter
values using the map() function. The examples and the online docs will show you how to use that function.
Jack, W8TEE
On Thursday, March 22, 2018, 4:16:23 PM EDT, Vic WA4THR via Groups.Io <vhklein@...> wrote:
I am tapping an AGC voltage into an analog input of the Raduino for an S-Meter, and it is working well to display "S9+5", for example, on line 2 of my BitX40. Now I am trying to add a bar-graphic to go with that using the custom graphics of the LCD, but not having success. Instead of graphics, I seem to be displaying each line of the defined graphic, like "11111" or something, and the formatting is off. I could use some help, since the bulk of my programming experience dates to BASIC on a TRS-80.