>>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:25 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Jacky BusName = SpiBus00 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:25:45.568509 = 19 8445 -12249 1 2019-12-20 22:25:45.580438 = 20 -4 288 2 2019-12-20 22:25:45.592272 = 19 -4 288 3 2019-12-20 22:25:45.604139 = 0 253 -12249 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:25 ******************************************************************************** ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:25 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Katie BusName = SpiBus01 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:25:45.628933 = 15 1 287 1 2019-12-20 22:25:45.640949 = 14 2 285 2 2019-12-20 22:25:45.652893 = 15 513 287 3 2019-12-20 22:25:45.664837 = 15 2 286 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:25 ******************************************************************************** >>> # facc224.py tlfong01 2019dec20hkt1916 # ****************************************************************************************************** # *** Import *** # ****************************************************************************************************** from time import sleep import spidev import os import sys from datetime import datetime from signal import pause import fprint220 as fprint import fmnu220 as fmnu import fspi218 as fspi # ****************************************************************************************************** # *** Adxl345 Functions *** # ****************************************************************************************************** adxl345ModuleDict = \ { 'ModuleType' : 'ADXL345', 'ModuleHelp' : 'Adxl345AccelerometerHelp', 'RegAddrDict' : 'Adxl345RegAddrDict', 'ControlByteDict' : 'Adxl345ControlByteDict', 'DevIdRegName' : 'DevIdReg', 'DevIdByteName' : 'DevIdByte', 'Jacky' : {'SpiBusName' : 'SpiBus00', }, 'Katie' : {'SpiBusName' : 'SpiBus01', }, 'Lucy' : {'SpiBusName' : 'SpiBus10', }, 'Maggi' : {'SpiBusName' : 'SpiBus11', }, 'Nancy' : {'SpiBusName' : 'SpiBus12', }, } moduleDictDict = \ { 'Adxl345' : adxl345ModuleDict, } adxl345RegAddrDict = \ { 'DevIdReg' : 0x00, 'DataFormatReg' : 0x31, 'PowerControlReg' : 0x2d, 'InterruptConfigReg' : 0x2e, 'DataX0' : 0x32, 'DataX1' : 0x33, 'DataY0' : 0x34, 'DataY1' : 0x35, 'DataZ0' : 0x36, 'DataZ1' : 0x37, } adxl345ControlByteDict = \ { 'DevIdByte' : 0xe5, 'Format16G13Bit' : 0x0B, 'StartMeasurement' : 0x08, 'InterruptDataReadyEnable' : 0x80, 'InterruptDataReadyDisable' : 0x00, } # *** Adxl345 Read/Write Register *** def adxl345ReadRegOneByte(deviceNickName, devRegName): #fprint.printBeginExecFunction() moduleTypeName = 'Adxl345' moduleDict = moduleDictDict['Adxl345'] spiBusName = moduleDict[deviceNickName]['SpiBusName'] devRegAddrDict = adxl345RegAddrDict spiBus = fspi.spiBusDict[spiBusName] devRegAddr = devRegAddrDict[devRegName] readByte = fspi.readDevRegOneByte(spiBusName, devRegAddrDict, devRegName) #fprint.printTitleString('BusName', fprint.indentFormat640, spiBusName) # For debugging #fprint.printTitleString('DevIdRegName', fprint.indentFormat640, devRegName) # For debugging #fprint.printTitleOneByteNum('DevRegAddr', fprint.indentFormat640, devRegAddr) # For debugging #fprint.printTitleOneByteNum('DevReg Contents',fprint.indentFormat640, readByte) # For debugging #fprint.printEndExecFunction() return readByte def adxl345WriteReadRegOneByte(deviceNickName, devRegName, writeByteName): #fprint.printBeginExecFunction() moduleTypeName = 'Adxl345' moduleDict = moduleDictDict['Adxl345'] spiBusName = moduleDict[deviceNickName]['SpiBusName'] devRegAddrDict = adxl345RegAddrDict controlByteDict = adxl345ControlByteDict spiBus = fspi.spiBusDict[spiBusName] devRegAddr = devRegAddrDict[devRegName] writeByte = controlByteDict[writeByteName] fspi.writedDevRegOneByte(spiBusName, devRegAddrDict, devRegName, controlByteDict, writeByteName) readByte = fspi.readDevRegOneByte(spiBusName, devRegAddrDict, devRegName) #fprint.printTitleString('BusName', fprint.indentFormat640, spiBusName) # For debugging #fprint.printTitleString('DevIdRegName', fprint.indentFormat640, devRegName) # For debugging #fprint.printTitleOneByteNum('DevRegAddr', fprint.indentFormat640, devRegAddr) # For debugging #fprint.printTitleString('WriteByteName', fprint.indentFormat640, writeByteName) # For debugging #fprint.printTitleOneByteNum('WriteByte', fprint.indentFormat640, writeByte) # For debugging #fprint.printTitleOneByteNum('Read Back Byte', fprint.indentFormat640, readByte) # For debugging #fprint.printEndExecFunction() return # ****************************************************************************************************** # *** Adxl345 Test Functions *** # ****************************************************************************************************** def checkDeviceId(deviceName): readByte = adxl345ReadRegOneByte(deviceName, 'DevIdReg') fprint.printTitleOneByteNum('DevIdRegister Contests', fprint.indentFormat640, readByte) return def configDevice(deviceInckName): # *** Config Adxl345 *** adxl345WriteReadRegOneByte(deviceInckName, 'DataFormatReg', 'Format16G13Bit') adxl345WriteReadRegOneByte(deviceInckName, 'InterruptConfigReg', 'InterruptDataReadyDisable') return def convertTwoCompNumToDecNum(twoCompNum, numBytes): twoCompNumStr = bin(twoCompNum) val = int(twoCompNumStr, numBytes) b = val.to_bytes(numBytes, byteorder=sys.byteorder, signed = False) decNum = int.from_bytes(b, byteorder = sys.byteorder, signed = True) return decNum def getOneMeasurementResults(deviceNickName): # *** Read Two's Compliment Raw Results *** x0 = adxl345ReadRegOneByte(deviceNickName, 'DataX0') x1 = adxl345ReadRegOneByte(deviceNickName, 'DataX1') y0 = adxl345ReadRegOneByte(deviceNickName, 'DataY0') y1 = adxl345ReadRegOneByte(deviceNickName, 'DataY1') z0 = adxl345ReadRegOneByte(deviceNickName, 'DataZ0') z1 = adxl345ReadRegOneByte(deviceNickName, 'DataZ1') # *** Convert To Decimal Results List *** xTwoComp = (x1 << 8) | x0 yTwoComp = (y1 << 8) | y0 zTwoComp = (z1 << 8) | z0 xDecNum = convertTwoCompNumToDecNum(xTwoComp, 2) yDecNum = convertTwoCompNumToDecNum(yTwoComp, 2) zDecNum = convertTwoCompNumToDecNum(zTwoComp, 2) xyzDecimalValuesList = (xDecNum, yDecNum, zDecNum) return xyzDecimalValuesList def getRepeatMeasurementResults(deviceNickName, repeatTimes, pauseSeconds): outputListStrList = ['dummy' for count in range(repeatTimes)] count = 0 for count in range(repeatTimes): # *** Start Measurement *** adxl345WriteReadRegOneByte(deviceNickName, 'PowerControlReg', 'StartMeasurement') # *** Get Decimal Values List *** xyzDecimalValuesList = getOneMeasurementResults(deviceNickName) outputListStr = ' ' + str(count).ljust(4) + str(datetime.now()).ljust(20) + ' = ' + \ str(xyzDecimalValuesList[0]).rjust(8) + ' ' + \ str(xyzDecimalValuesList[1]).rjust(8) + ' ' + \ str(xyzDecimalValuesList[2]).rjust(8) outputListStrList[count] = outputListStr sleep(pauseSeconds) return outputListStrList def printRepeatMeasurementResults(deviceNickname, measurementResultsList): # *** Print Title *** fprint.printTitleString ('Device Name', fprint.indentFormat640, deviceNickname) fprint.printTitleString ('BusName', fprint.indentFormat640, moduleDictDict['Adxl345'][deviceNickname]['SpiBusName']) print(' ') print(' ----------------------------------------------------------------------') fprint.printTitleString(' Time', fprint.indentFormat640, ' X value Y Value Z Value') print(' ----------------------------------------------------------------------') # *** Repeat Print Measurement Results *** for measurementResults in measurementResultsList: print(measurementResults) print(' ----------------------------------------------------------------------') return def testAdxl345(deviceNickName): fprint.printBeginExecFunction() checkDeviceId(deviceNickName) configDevice(deviceNickName) measurementResultsList = getRepeatMeasurementResults(deviceNickName, 4, 0.01) printRepeatMeasurementResults(deviceNickName, measurementResultsList) fprint.printEndExecFunction() return # *** Adxl345 Tests *** def testCheckDeviceIdJacky(): checkDeviceId('Jacky') return def testConfigDeviceJacky(): configDevice('Jacky') return def testMeasurementsJacky(): measurementResultsList = getRepeatMeasurementResultsList('Jacky', 4, 0.01) printMeasurementResults('Jacky', measurementResultsList) return def testJacky(): testAdxl345('Jacky') return def testKatie(): testAdxl345('Katie') return # ****************************************************************************************************** # *** Main Test Functions *** # ****************************************************************************************************** def exit(): pass return # *** Menu Config *** def readMainMenu(): fprint.printBeginExecFunction() fmnu.execMenuList(mainMenu) fprint.printEndExecFunction() return def readSpiMenu(): fprint.printBeginExecFunction() fmnu.execMenuList(spiMenu) fprint.printEndExecFunction() return def readAdxl345Menu(): fprint.printBeginExecFunction() fmnu.execMenuList(adxl345Menu) fprint.printEndExecFunction() return def readMoreMenu(): fprint.printBeginExecFunction() print('Not yet ready!!!') fprint.printEndExecFunction() return # *** Menu Config *** mainMenu = ['########## Main Menu ##############################################################', [['0', ['ADXL345 Tests', readAdxl345Menu]], ['1', ['More Tests', readMoreMenu]], ] ] adxl345Menu = ['########## ADXL345 Tests Menu ##################################################', [['0', ['checkDeviceId', testCheckDeviceIdJacky]], ['1', ['configDevice', testConfigDeviceJacky]], ['2', ['repeatMeasurements', testMeasurementsJacky]], ['3', ['testAll', testJacky]], ] ] # *** Main Tests *** def main(): #getSystemConfigInfo() #testCheckDeviceIdJacky() #testConfigDeviceJacky() #testMeasurementsJacky() #testAllJacky() #print('facc218 main()') #readMainMenu() testJacky() testKatie() return # ****************************************************************************************************** # *** Main *** # ****************************************************************************************************** if __name__ == '__main__': main() # .END
ue Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:46:57.924985 = 0 0 0 1 2019-12-20 21:46:57.936953 = 14 0 269 2 2019-12-20 21:46:57.948979 = 15 0 287 3 2019-12-20 21:46:57.961049 = 15 1 285 ---------------------------------------------------------------------- End Execute Function adxl345Test 2019-12-20 21:46 ******************************************************************************** >>> %Run facc224.py ******************************************************************************** Begin Execute Function adxl345Test 2019-12-20 21:47 Function Name = adxl345Test DevIdRegister Contests = = 0xe5 ADXL345 Device Name = Jacky ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:47:19.990969 = 17 253 294 1 2019-12-20 21:47:20.002782 = 17 -1027 464 2 2019-12-20 21:47:20.014649 = 18 -4 464 3 2019-12-20 21:47:20.026598 = 17 -4 464 ---------------------------------------------------------------------- End Execute Function adxl345Test 2019-12-20 21:47 ******************************************************************************** ******************************************************************************** Begin Execute Function adxl345Test 2019-12-20 21:47 Function Name = adxl345Test DevIdRegister Contests = = 0xca ADXL345 Device Name = Katie ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:47:20.053094 = 13 0 284 1 2019-12-20 21:47:20.065240 = 14 -1 284 2 2019-12-20 21:47:20.077555 = 15 1 286 3 2019-12-20 21:47:20.089793 = 13 1 284 ---------------------------------------------------------------------- End Execute Function adxl345Test 2019-12-20 21:47 ******************************************************************************** >>> %Run facc224.py ******************************************************************************** Begin Execute Function adxl345Test 2019-12-20 21:48 Function Name = adxl345Test DevIdRegister Contests = = 0xe5 ADXL345 Device Name = Jacky ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:48:45.402897 = 18 253 294 1 2019-12-20 21:48:45.414764 = 18 253 -12251 2 2019-12-20 21:48:45.426594 = 18 253 -12249 3 2019-12-20 21:48:45.438505 = 19 253 294 ---------------------------------------------------------------------- End Execute Function adxl345Test 2019-12-20 21:48 ******************************************************************************** ******************************************************************************** Begin Execute Function adxl345Test 2019-12-20 21:48 Function Name = adxl345Test DevIdRegister Contests = = 0xca ADXL345 Device Name = Katie ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:48:45.463183 = 13 1 283 1 2019-12-20 21:48:45.475304 = 16 1 286 2 2019-12-20 21:48:45.487279 = 16 1 286 3 2019-12-20 21:48:45.499381 = 14 0 285 ---------------------------------------------------------------------- End Execute Function adxl345Test 2019-12-20 21:48 ******************************************************************************** >>> %Run facc224.py Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 293, in <module> main() File "/home/pi/Python_programs/work1459/facc224.py", line 284, in main testJacky() File "/home/pi/Python_programs/work1459/facc224.py", line 218, in testJacky adxl345Test('Jacky') NameError: name 'adxl345Test' is not defined >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 21:55 Function Name = testAdxl345 DevIdRegister Contests = = 0xe5 Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 293, in <module> main() File "/home/pi/Python_programs/work1459/facc224.py", line 284, in main testJacky() File "/home/pi/Python_programs/work1459/facc224.py", line 218, in testJacky testAdxl345('Jacky') File "/home/pi/Python_programs/work1459/facc224.py", line 197, in testAdxl345 measurementResultsList = getRepeatMeasurementResults(deviceNickName, 4, 0.01) File "/home/pi/Python_programs/work1459/facc224.py", line 168, in getRepeatMeasurementResults xyzDecimalValuesList = getXyzDecimalValuesList(deviceNickName) NameError: name 'getXyzDecimalValuesList' is not defined >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 21:56 Function Name = testAdxl345 DevIdRegister Contests = = 0xe5 Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 293, in <module> main() File "/home/pi/Python_programs/work1459/facc224.py", line 284, in main testJacky() File "/home/pi/Python_programs/work1459/facc224.py", line 218, in testJacky testAdxl345('Jacky') File "/home/pi/Python_programs/work1459/facc224.py", line 198, in testAdxl345 printMeasurementResults(deviceNickName, measurementResultsList) NameError: name 'printMeasurementResults' is not defined >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 21:56 Function Name = testAdxl345 DevIdRegister Contests = = 0xca ADXL345 Device Name = Jacky ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:56:41.897610 = 18 253 -12251 1 2019-12-20 21:56:41.909534 = 19 -4 464 2 2019-12-20 21:56:41.921563 = 18 -4 464 3 2019-12-20 21:56:41.933573 = 18 -4 288 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 21:56 ******************************************************************************** ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 21:56 Function Name = testAdxl345 DevIdRegister Contests = = 0xe5 ADXL345 Device Name = Katie ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:56:41.958461 = 15 3 286 1 2019-12-20 21:56:41.970454 = 14 1 285 2 2019-12-20 21:56:41.982426 = 14 2 286 3 2019-12-20 21:56:41.994523 = 15 1 284 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 21:56 ******************************************************************************** >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 21:57 Function Name = testAdxl345 DevIdRegister Contests = = 0xe5 ADXL345 Device Name = Jacky ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:57:19.348682 = 18 -2 464 1 2019-12-20 21:57:19.360554 = 19 -2 288 2 2019-12-20 21:57:19.372384 = 19 253 294 3 2019-12-20 21:57:19.384305 = 18 -4 288 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 21:57 ******************************************************************************** ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 21:57 Function Name = testAdxl345 DevIdRegister Contests = = 0xe5 ADXL345 Device Name = Katie ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 21:57:19.412731 = 14 2 286 1 2019-12-20 21:57:19.424738 = 16 0 286 2 2019-12-20 21:57:19.436819 = 15 2 286 3 2019-12-20 21:57:19.448977 = 14 2 285 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 21:57 ******************************************************************************** >>> %Run facc224.py Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 181 fprint.printTitleString ('BusName', fprint.indentFormat640, moduleDictDict[deviceNickname]['SpiBusName]) ^ SyntaxError: EOL while scanning string literal >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:04 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Jacky Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 294, in <module> main() File "/home/pi/Python_programs/work1459/facc224.py", line 285, in main testJacky() File "/home/pi/Python_programs/work1459/facc224.py", line 219, in testJacky testAdxl345('Jacky') File "/home/pi/Python_programs/work1459/facc224.py", line 199, in testAdxl345 printRepeatMeasurementResults(deviceNickName, measurementResultsList) File "/home/pi/Python_programs/work1459/facc224.py", line 181, in printRepeatMeasurementResults fprint.printTitleString ('BusName', fprint.indentFormat640, moduleDictDict[deviceNickname]['SpiBusName']) KeyError: 'Jacky' >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:05 Function Name = testAdxl345 DevIdRegister Contests = 0xca Device Name = Jacky Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 294, in <module> main() File "/home/pi/Python_programs/work1459/facc224.py", line 285, in main testJacky() File "/home/pi/Python_programs/work1459/facc224.py", line 219, in testJacky testAdxl345('Jacky') File "/home/pi/Python_programs/work1459/facc224.py", line 199, in testAdxl345 printRepeatMeasurementResults(deviceNickName, measurementResultsList) File "/home/pi/Python_programs/work1459/facc224.py", line 181, in printRepeatMeasurementResults fprint.printTitleString ('BusName', fprint.indentFormat640, moduleDictDict['Adxl345']['SpiBusName']) KeyError: 'SpiBusName' >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:06 Function Name = testAdxl345 DevIdRegister Contests = 0xca Device Name = Jacky Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 294, in <module> main() File "/home/pi/Python_programs/work1459/facc224.py", line 285, in main testJacky() File "/home/pi/Python_programs/work1459/facc224.py", line 219, in testJacky testAdxl345('Jacky') File "/home/pi/Python_programs/work1459/facc224.py", line 199, in testAdxl345 printRepeatMeasurementResults(deviceNickName, measurementResultsList) File "/home/pi/Python_programs/work1459/facc224.py", line 181, in printRepeatMeasurementResults fprint.printTitleString ('BusName', fprint.indentFormat640, moduleDictDict['Adxl345']['DeviceNickName']['SpiBusName']) KeyError: 'DeviceNickName' >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:07 Function Name = testAdxl345 DevIdRegister Contests = 0xca Device Name = Jacky Traceback (most recent call last): File "/home/pi/Python_programs/work1459/facc224.py", line 294, in <module> main() File "/home/pi/Python_programs/work1459/facc224.py", line 285, in main testJacky() File "/home/pi/Python_programs/work1459/facc224.py", line 219, in testJacky testAdxl345('Jacky') File "/home/pi/Python_programs/work1459/facc224.py", line 199, in testAdxl345 printRepeatMeasurementResults(deviceNickName, measurementResultsList) File "/home/pi/Python_programs/work1459/facc224.py", line 181, in printRepeatMeasurementResults fprint.printTitleString ('BusName', fprint.indentFormat640, moduleDictDict['Adxl345'][deviceNickName]['SpiBusName']) NameError: name 'deviceNickName' is not defined >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:07 Function Name = testAdxl345 DevIdRegister Contests = 0xca Device Name = Jacky BusName = SpiBus00 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:07:40.556782 = 18 -2 464 1 2019-12-20 22:07:40.568595 = 18 253 294 2 2019-12-20 22:07:40.580371 = 18 8443 294 3 2019-12-20 22:07:40.592204 = 20 -4 464 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:07 ******************************************************************************** ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:07 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Katie BusName = SpiBus01 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:07:40.619656 = 7695 2 288 1 2019-12-20 22:07:40.631688 = 15 0 283 2 2019-12-20 22:07:40.643864 = 13 1 285 3 2019-12-20 22:07:40.655970 = 13 1 283 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:07 ******************************************************************************** >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:08 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Jacky BusName = SpiBus00 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:08:07.871191 = 19 -4 288 1 2019-12-20 22:08:07.883264 = 18 -4 288 2 2019-12-20 22:08:07.895307 = 18 253 -12249 3 2019-12-20 22:08:07.907598 = 18 253 -12249 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:08 ******************************************************************************** ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:08 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Katie BusName = SpiBus01 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:08:07.931181 = 13 0 285 1 2019-12-20 22:08:07.943188 = 15 1 288 2 2019-12-20 22:08:07.955255 = 15 1 288 3 2019-12-20 22:08:07.967537 = 15 1 286 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:08 ******************************************************************************** >>> %Run facc224.py ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:13 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Jacky BusName = SpiBus00 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:13:20.591553 = 18 -4 296 1 2019-12-20 22:13:20.603373 = 18 8443 292 2 2019-12-20 22:13:20.615150 = 20 8443 -12249 3 2019-12-20 22:13:20.627045 = 18 -4 464 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:13 ******************************************************************************** ******************************************************************************** Begin Execute Function testAdxl345 2019-12-20 22:13 Function Name = testAdxl345 DevIdRegister Contests = 0xe5 Device Name = Katie BusName = SpiBus01 ---------------------------------------------------------------------- Time = X value Y Value Z Value ---------------------------------------------------------------------- 0 2019-12-20 22:13:20.655311 = 14 1 288 1 2019-12-20 22:13:20.667353 = 15 2 283 2 2019-12-20 22:13:20.679394 = 14 2 287 3 2019-12-20 22:13:20.691473 = 14 513 285 ---------------------------------------------------------------------- End Execute Function testAdxl345 2019-12-20 22:13 ******************************************************************************** >>>
Categories: Uncategorized