bitfogav wrote:Looking forward to seeing how its come out

and the final code with the LCD display

Well I have to wait a few more days for the new camera - sorry.
BUT, how about I paste the LCD code (as it is at the moment)
Code: Select all
Sub draw_lcd()
If button_debounce = 0 And nes_select = 0 Then
LCD.Cls
button_debounce = 15
Inc(menu_cycle)
If menu_cycle = 4 Then
menu_cycle = 0
EndIf
EndIf
Select menu_cycle
Case 0
LCD.WriteAt(1,1," P A C M A N ")
LCD.WriteAt(2,1,"By Brad Slattery")
Case 1
LCD.WriteAt(1,1,"Stage=",Convert.DecToStr(current_stage,2)," Lives=",Convert.DecToStr(lives,1))
LCD.WriteAt(2,1,"Score=",Convert.DecToStr(score,5))
Case 2
LCD.WriteAt(1,1,"Buttons RLDUSSBA")
LCD.WriteAt(2,1,"Status ",Convert.BinToStr(nes_flags,8))
Case 3
If nes_up = 0 And button_debounce = 0 And current_stage < 2 Then
Inc(current_stage)
button_debounce = 15
ElseIf nes_down = 0 And button_debounce = 0 And current_stage > 0 Then
Dec(current_stage)
button_debounce = 15
EndIf
LCD.WriteAt(1,1,"Stage")
LCD.WriteAt(2,1,"Select = ",Convert.DecToStr(current_stage,2))
End Select
End Sub
It is a really basic setup here, it checks if the select button has been pressed, if it has - it clears the screen, changes to the next menu number (of which there are four at the moment 0 to 3). It will then display the relevant data on the LCD display which is dependant upon the number stored in menu_cycle.