For example, i2cmast.pbp exempt:
what is "bogus" here and what it does?Code:mainloop: I2CWrite SDA,SCL,$02,[127], bogus ' Write offset to slave Pause 500 I2CRead SDA,SCL,$02,[STR a\8], bogus ' Read string from slave LCDOut $fe, 1, STR a\5,SDEC a[5] ' Display result, preceded by 5 character ' string received from slave. Pause 500 GoTo mainloop ' Do it forever bogus: LCDOut $fe,1, "timed out" ' I2C command timed out Pause 1000 GoTo mainloop End
Bookmarks