Hi, I wrote this code so that I could display the number on putty which is being represented by LEDS on my Cyclone V board. The leds on board are working perfectly fine. But the output on my putty terminal is not working. For example, if I type ./program_name 8 then it will display §§§ or just 173. Any ideas where is the error?
Attach is the file for my code