Entrenador para PICAXE 08, 08M

Anuncio
Entrenador para PICAXE 08, 08M
Mi eje 3
Symbol Boton4 = pin4
Symbol Boton3 = pin3
Symbol Boton2 = pin2
Symbol Rele0 = 0
Symbol Rele1 = 1
Symbol Tx
=2
Goto Inicio
'
'Subrutinas para la tarjeta LCDSER
'---------------------------------------------------------'Clear_display:
'
Serout Tx,T2400,(254,1)
'
Pause 30
'Return
'---------------------------------------------------------'Ini_linea_1:
'
Serout Tx,T2400,(254,2)
'
Pause 30
'Return
'---------------------------------------------------------'Ini_linea_2:
'
Serout Tx,T2400,(254,$C0)
'
Pause 30
'Return
'----------------------------------------------------------'Ini_linea_3:
'
Serout Tx,T2400,(254,$94)
'
Pause 30
'Return
'----------------------------------------------------------'Ini_linea_4:
'
Serout Tx,T2400,(254,$D4)
'
Pause 30
'Return
'----------------------------------------------------------'Cursor_Off:
'
Serout Tx,T2400,(254,$0C)
'
Pause 30
'Return
'----------------------------------------------------------'Cursor_Underline:
'
Serout Tx,T2400,(254,$0E)
'
Pause 30
'Return
'----------------------------------------------------------'Cursor_Blinking:
'
Serout Tx,T2400,(254,$0F)
'
Pause 30
'Return
'----------------------------------------------------------'Backlight_On:
'
Serout Tx,T2400,(254,251)
'
Pause 30
'Return
'----------------------------------------------------------'Backlight_Off:
'
Serout Tx,T2400,(254,252)
'
Pause 30
'Return
'----------------------------------------------------------'---------------------------------------------------------Clear_display:
Serout Tx,T2400,(254,1)
Pause 30
Return
'---------------------------------------------------------Ini_linea_1:
Serout Tx,T2400,(254,2)
Pause 30
Return
'---------------------------------------------------------Ini_linea_2:
Serout Tx,T2400,(254,$C0)
Pause 30
Return
'-----------------------------------------------------------
Inicio:
High Tx
Ciclo:
If Boton4= 1 then Secuencia_Boton4
If Boton3= 1 then Secuencia_Boton3
Goto Ciclo
Secuencia_Boton4:
high Rele0
pause 500
low Rele0
pause 500
Desactiva4:
If Boton4=1 then Desactiva4
Pause 250
If Boton4=1 then Desactiva4
Goto Inicio
Secuencia_Boton3:
high Rele1
pause 500
low Rele1
pause 500
Gosub Clear_display
pause 500
Serout Tx,T2400,("HOLA Amigo")
Pause 1000
Gosub Ini_linea_2
Serout Tx,T2400,("Contador = 300 K")
Desactiva3:
If Boton3=1 then Desactiva3
Pause 250
If Boton3=1 then Desactiva3
Goto Inicio
End
Saber Electrónica Nº 200
27
Descargar