Thanks for your advice!
I added the parameter 2 to lines 7 and 15 and now it's reading.
def __init__(self):
        self.hmc = Adafruit_I2C(0x1E,2)
        self.debug = False
        self.address = 0x1E
        
        self.readingList = [0, 0, 0]
        self.maxList = [0, 0, 0]
        self.minList = [0, 0, 0]
        
        self.mpu = Adafruit_I2C(0x68,2)



On Thursday, January 4, 2018 at 9:42:58 AM UTC-5, Graham wrote:
>
> I meant, go look at the AdaFruit I2C code.
> I think you need to override the bus number to get it talking to bus 2.
>
> --- Graham
>
> ==
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b8321aef-db4e-4d31-8608-1695ebd53fa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to