0
ωχ...ο μακακας...εβαλα λαθος συμβολο.
program I2C_EXAMP
dim Dieuth, DEUT, LEPT, ORA as byte
main:
I2C_Init(100000)
TRISB = 0
TRISC = 255
Lcd_Config(PORTB, 3, 2, 1, 0, PORTB, 4, 6, 5)
Lcd_Cmd(LCD_CLEAR)
Lcd_Cmd(LCD_CURSOR_OFF)
I2C_Start
Dieuth = $00
I2C_Wr(Dieuth)
DEUT=I2C_Rd(0)
Dieuth = $01
I2C_Wr(Dieuth)
LEPT=I2C_Rd(0)
Dieuth = $02
I2C_Wr(Dieuth)
ORA=I2C_Rd(0)
I2C_Stop
END.
γιατι στο δυαδικο?να μην τα περνουμε στο δεκαεξαδικο απο το datasheet?δεν γινετε?