fake_rpi/Adafruit.py
def read(self):
		"""
		Since there isn't a real sensor connected, read() creates random
		data.
		"""
		data = [0]*6
		for i in range(6):
			data[i] = random.uniform(-2048, 2048)
		accel = data[:3]
		mag = data[3:]
		return (accel, mag)
def read(self):
		"""
		Since there isn't a real sensor connected, read() creates random
		data.
		"""
		data = [0]*6
		for i in range(6):
			data[i] = random.uniform(-2048, 2048)
		accel = data[:3]
		mag = data[3:]
		return (accel, mag)
def read ( self ) : data = [ 0 ] * 6 for i in range ( 6 ) : data [ i ] = random . uniform ( - 2048 , 2048 ) accel = data [ : 3 ] mag = data [ 3 : ] return ( accel , mag )
Since there isn't a real sensor connected, read() creates random
		data.
Since there isn t a real sensor connected read () creates random data .