
142 Make: Radio
input pins for the two pushbuttons to enable tuning up and down. When the
setup function ends, the radio chip should be receiving the frequency set on
line 20. The only thing left for the loop function to do is to handle key presses
on the tuning keys and display information on the screen.
Lines 39–43 check if either of the tuning buttons is pressed, and if so, it
resets the RDS/RBDS data to prevent an old station name from showing.
Line 44 checks if the S2 seek-down button is pressed. If so, the seek
command on line 45 instructs the radio chip to seek the next station at a
lower frequency. Lines 46 and 47 do the same for seeking ...