roboforum.ruТехнический форум по робототехнике. |
|
|
Config Lcdpin = Pin , Db4 = Porta.4 , Db5 = Porta.5 , Db6 = Porta.6 , Db7 = Porta.7 , E = Portc.7 , Rs = Portc.6
EdGull писал(а):Shaab от куда тогда вопросы?
$regfile = "m8def.dat"
$crystal = 12000000
'$sim
'in order for simulation to work correct, you need to specify the used pins
'for lcd4.lbx, the pins are fixed
'Rs = PortB.0
'RW = PortB.1 we dont use the R/W option of the LCD in this version so connect to ground
' E = PortB.2
'E2 = PortB.3 optional for lcd with 2 chips
'Db4 = PortB.4 the data bits must be in a nibble to save code
'Db5 = PortB.5
'Db6 = PortB.6
'Db7 = PortB.7
Config Lcdpin = Pin , Rs = Portd.3 , E = Portc.3 , E2 = Portc.4 , Db4 = Portd.4 , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7
Config Lcd = 40 * 4
Config Portc.2 = Output
Portc.2 = 0 / / притянул R / W к земле программно
Cls
Lcd "test"
Lowerline
Lcd "12345678"
Thirdline
Lcd "Line 3"
Fourthline
Lcd "Line 4"
End
Сейчас этот форум просматривают: Google [Bot] и гости: 41