Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18347

Re: Edison Arduino i2c

$
0
0

I can read the temp sensor's i2c address on my Arduino UNO using Nick Gammon's i2c Scanner sketch. It says it's hex 48 (decimal 72). But when I try to run the i2c Scanner sketch on my Edison-Arduino it doesn't do anything.  Uploads OK but no output.

 

The only library it loads is wire.h just like the above sketch.  So I think the issue is in that library, which apparently has been specially modified for the Edison-Arduino.

 

Standard wire.h has:

 

#ifndef TwoWire_h
#define TwoWire_h

#include <inttypes.h>
#include "Stream.h"

#define BUFFER_LENGTH 32

 

but Edison-Arduino wire.h has:

 

#ifndef TwoWire_h
#define TwoWire_h

#include "Stream.h"
#include "variant.h"

#define BUFFER_LENGTH 32
#define I2C2 0x4819c000
#define I2C1 0x00000000
#define WIRE_INTERFACES_COUNT 1

 

So, I'm still puzzled by #define I2C2 0x4819c000 and how that translates to Bus ID 6.

 

Frankly, I have found very few tried & true Arduino sketches that run on the Edison-Arduino, except for simple sketches that don't involve any IO.


Viewing all articles
Browse latest Browse all 18347

Trending Articles



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