'x': [0x44, 0x28, 0x10, 0x28, 0x44], 'y': [0x0c, 0x50, 0x50, 0x50, 0x3c], 'z': [0x44, 0x64, 0x54, 0x4c, 0x44], '{': [0x00, 0x08, 0x36, 0x41, 0x41], '|': [0x00, 0x00, 0x7f, 0x00, 0x00], '}': [0x41, 0x41, 0x36, 0x08, 0x00], '~': [0x04, 0x02, 0x04, 0x08, 0x04], } import time import os, sys from OpenElectrons_i2c import OpenElectrons_i2c from OpenElectrons_LSM303 import MAG test = 1 oe = OpenElectrons_i2c(0x38) lsm = MAG() str = "OpenElectrons.com" length = len(str) index = 0 test = 1 g = 9.81 t = .25 count = 0 print str while test == 1: #turn leds off oe.simpleWriteByte(0xff) #get first value array = lsm.readArray(lsm.MAG_X_Y_Z | 0x80, 6)