Вы находитесь на странице: 1из 1

$regfile = "m328pdef.

dat"
$crystal = 8000000
$baud = 9600

Config Lcdpin = Pin , Db4 = Portd.4 , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7
, E = Portd.2 , Rs = Portd.3
Config Portb = Output
Cursor Off

Dim S As String * 4
Dim X As String * 6
Dim Z As String * 8

Uno Alias Pinc.4

Do
If Uno = 0 Then

Input S
Locate 1 , 1
Lcd S

Input Z 'recibir - input espera


hasta que reciba un dato serial
Locate 2 , 1
Lcd "T1:" : Lcd Z

Input X
Locate 2 , 8
Lcd "T2:" : Lcd X

Waitms 200
Cls

Else
Locate 1 , 1
Lcd "PWM-ON"
Locate 2 , 1
Lcd "-----------"
End If

Loop

Вам также может понравиться