andrefcarvalho
New Member
Good morning everyone,
I've come to ask for your help, once in a project useri a lcd 40x2 using the protocologo i2c, but the form of writing is different from what I'm using, however part of the code is this:
It works, but due to the size of the lcd in the car (I'm using par to read the engine temperature with a ds18b20) I wanted to implement an lcd olc 0.96 "I bought on ebay, has the drive ssd1306 that I managed to work by reading this topic http://www.picaxeforum.co.uk/showthread.php?27651-I2C-OLED-display&highlight=ssd1306
ja alterei o codigo que encontrei a minha medida, sei que esta confuso, mas ainda não consegui perceber ao certo a maior parte dos comandos
here is the code and in the part of reading the temperature, I am not getting the way to implement the values as I had in the last code, how can I implement this?
below is the code I'm using
I've come to ask for your help, once in a project useri a lcd 40x2 using the protocologo i2c, but the form of writing is different from what I'm using, however part of the code is this:
Code:
'------------------------------------menu pincipal--------------------------------
limpar_lcd:
writei2c 0,(12,4) 'limpar lcd
er_temp: 'temperatura
'escrever no lcd
writei2c 0,(0,2,7,19)
writei2c 0,(".:State:.")
writei2c (0,2,21)
writei2c (" Motor ",129)
writei2c (0,2,41)
writei2c (" Exterior ",129)
ler_tempx:
'setfreq m16 ' cristal exterior de 16mhz
'ler temperatura
readtemp12 D.1,w13
temp1:
if w13>= 64656 then 'caso o valor seja negativo
let w13 = 65535-w13+1*10/16 'calculos para valores negativos
'debug
writei2c (0,2,31)
bintoascii w13,b0,b1,b2
hi2cout("-",b0,b1,".",b2,128)
else
let w13 = w13*10/16 'calculo para valores positivos
'debug
writei2c (0,2,32)
bintoascii w13,b0,b1,b2
hi2cout("","",b0,b1,".",b2,128)
endif
ja alterei o codigo que encontrei a minha medida, sei que esta confuso, mas ainda não consegui perceber ao certo a maior parte dos comandos
here is the code and in the part of reading the temperature, I am not getting the way to implement the values as I had in the last code, how can I implement this?
below is the code I'm using