not only that row[0] to [4] are set to 0 still
Code:;pic 12F1840#CONFIG __config _CONFIG1, _FOSC_INTOSC & _MCLRE_ON & _CP_OFF & _CPD_OFF __config _CONFIG2, _PLLEN_OFF & _LVP_OFF #ENDCONFIG OSCCON = %01110000 DEFINE OSC 8 TRISA = %000000 ANSELA = 0 'Digital scl var portA.2 sda var portA.1 SADD VAR BYTE ROW VAR WORD[4] COL var byte TMP VAR WORD CLEAR INIT: i2cwrite sda,scl,$e0,[$21] 'on i2cwrite sda,scl,$e0,[$81] 'blink off i2cwrite sda,scl,$e0,[$E8] 'HALF BRIGHT i2cwrite sda,scl,$e0,[$A0] 'NO INT i2cwrite sda,scl,$e0,[SADD,ROW,ROW,ROW,ROW] ;CLEAR pause 200;send something row[0]=5:row[1]=4:row[3]=2:row[0]=1 SADD=1 ; not sure about this might need to be 0 i2cwrite sda,scl,$70,[SADD,ROW[0],ROW[1],ROW[2],ROW[3]]




Bookmarks