Parque de estacionamento automatizado
Parque de estacionamento automatizado
Parque de estacionamento automatizado
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Relatório da Prova <strong>de</strong> Aptidão Profissional – Bruno Barbosa<br />
If Estado<strong>Parque</strong> = 255 Then<br />
EsperaSaida= 1<br />
Escreve<strong>Parque</strong>Ocupado<br />
Set LED_VRM On<br />
Goto Main<br />
Else<br />
Set LED_VRM Off<br />
LimpaSegundaEntrada<br />
End If<br />
'Trata procedimentos da saída<br />
If PORTC.7 = 1 Then<br />
If PORTA.5 = 1 Then<br />
EscreveAguar<strong>de</strong>Entrada<br />
End If<br />
EscreveIntroduzirCodigo<br />
Loop3:<br />
'Valida código <strong>de</strong> saída do parque<br />
'Lê teclado<br />
ReadKeyCo<strong>de</strong><br />
'Se não foi premida nenhuma tecla volta atrás<br />
If Key_Co<strong>de</strong> = 0 Then<br />
Goto Loop3<br />
End If<br />
'Aguarda algum tempo para se soltar a tecla<br />
Wait 150 ms<br />
'Se foi premida a tecla ENTER, verifica o PIN<br />
If Key_Co<strong>de</strong> = 224 Or Key_Co<strong>de</strong> = 90 Then<br />
Goto CheckPIN<br />
End If<br />
'Caso contrário, converte o código da tecla para o código ASCII do caráter<br />
e verifica se é caráter numérico<br />
GetKeyChar<br />
- 16 -