Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20757

BASCOM-AVR : new problem with I2C : REPLY

$
0
0
Hi, I don't think this is ok : [i:fb45b32810]do i2cstart i2cwbyte &H80 Loop Until Err = 0 'Print "erreur = " ; Err I2cstart I2cwbyte &H80 I2cwbyte &H35 '--> new stop byte I2cstart I2cwbyte &H81 I2crbyte Valeur_byte , Nack I2cstop Waitms 5 Print "valeur= " ; Valeur_byte Goto Main [/i:fb45b32810] think its : [code:1:fb45b32810]Do I2cstart I2cwbyte &H80 Loop Until Err = 0 I2cwbyte &H35 I2cstart I2cwbyte &H81 I2crbyte Valeur_byte , Nack I2cstop 'or maybe I2cstart I2cwbyte &H80 I2cwbyte &H35 Do I2cstart I2cwbyte &H81 Loop Until Err = 0 I2crbyte Valeur_byte , Nack I2cstop[/code:1:fb45b32810]

Viewing all articles
Browse latest Browse all 20757

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>