From: Matthias T. <mt...@we...> - 2012-06-04 19:01:47
|
Hi Jan, > Wire.beginTransmission(THERM); > Wire.send(0); > Wire.endTransmission(); > Wire.requestFrom(THERM, 2); <======???? > Temperature_H = Wire.receive(); <=====???? > Temperature_L = Wire.receive(); <=====???? > > into the amForth without any success. > > In this case I set the register index at zero, and I won't to read two bytes. Did you check the following code from the repository? http://amforth.svn.sourceforge.net/viewvc/amforth/applications/ewlib/ The I2C snippets do exactly what you want (IMHO) Matthias |