I'm a bit stuck.... I got everything to work but I have an issue where my digits will shift to the left when less that 10. so for example a 1-15 frequency selector, 10-15 are displayed fine but 3-9 become 30,40,50,60,70,80,90 and then it goes normally to 10,11,12,13,14,15 and then back to 30,40 etc [edit: removed the10,20 since freqs start at 3]
here is the relevant code :
I thought of maybe telling it to check if the value is less than 10 then to write directly to digit 2 (the physical 7seg digit I mean) and if its more than 10 to write to both digits but I didn't manage to make it work.
something like this:
I tried many variations of the above but I'm lacking some fundamental understanding on how it works so I end up with compiler errors when trying to convert char* to int. Or it compiles ok but to no effect. I tried to use "atoi" and a=b-'0' but no luck.
My code looks like shit, I know :(