各位大哥,小弟欲用VB寫一個程序,用以讀取BQ27210中的各參數,但對通信不是很在行,可否不吝賜教,小弟不勝感激!
VisualBasic:
integer I2CReadWrite(nOperation as integer, nTargetAddrOrData as integer, nWordAddr as integer, nData as integer by reference);
我試過多次,不知如何填寫上述參數,以致不能正確地讀取各參數
write: nTarger=A0 nOPeration=1
後面的如何設定及轉換,請賜教!!!