updated to fit new acceleration and time/millis
updated to fit new acceleration and time/millis

Changed pyb.accel() and pyb.time() to the new pyb.Accel() object and pyb.millis() function.
Also shortened the loop so the writing is finished before the USB connection messes things up.
alex-march/micropython,torwag/micropython,omtinez/micropython,noahchense/micropython,slzatz/micropython,bvernoux/micropython,Peetz0r/micropython-esp32,slzatz/micropython,omtinez/micropython,mhoffma/micropython,galenhz/micropython,tdautc19841202/micropython,adamkh/micropython,tralamazza/micropython,puuu/micropython,mianos/micropython,adamkh/micropython,Peetz0r/micropython-esp32,pramasoul/micropython,bvernoux/micropython,deshipu/micropython,toolmacher/micropython,tralamazza/micropython,cwyark/micropython,dinau/micropython,ryannathans/micropython,mianos/micropython,jmarcelino/pycom-micropython,neilh10/micropython,cloudformdesign/micropython,ceramos/micropython,neilh10/micropython,micropython/micropython-esp32,heisewangluo/micropython,ganshun666/micropython,adafruit/micropython,ruffy91/micropython,mhoffma/micropython,trezor/micropython,ahotam/micropython,ryannathans/micropython,deshipu/micropython,kerneltask/micropython,aethaniel/micropython,pozetroninc/micropython,orionrobots/micropython,EcmaXp/micropython,TDAbboud/micropython,omtinez/micropython,mianos/micropython,lbattraw/micropython,oopy/micropython,vitiral/micropython,Peetz0r/micropython-esp32,xyb/micropython,MrSurly/micropython-esp32,neilh10/micropython,jlillest/micropython,deshipu/micropython,henriknelson/micropython,henriknelson/micropython,trezor/micropython,supergis/micropython,vriera/micropython,oopy/micropython,tobbad/micropython,dmazzella/micropython,HenrikSolver/micropython,puuu/micropython,alex-robbins/micropython,xyb/micropython,dhylands/micropython,supergis/micropython,kerneltask/micropython,Vogtinator/micropython,stonegithubs/micropython,utopiaprince/micropython,ChuckM/micropython,selste/micropython,selste/micropython,alex-robbins/micropython,AriZuu/micropython,ChuckM/micropython,vriera/micropython,adamkh/micropython,lowRISC/micropython,praemdonck/micropython,tobbad/micropython,mgyenik/micropython,slzatz/micropython,deshipu/micropython,jimkmc/micropython,martinribelotta/micropython,adafruit/circuitpython,rubencabrera/micropython,aethaniel/micropython,lowRISC/micropython,pramasoul/micropython,xhat/micropython,cnoviello/micropython,jimkmc/micropython,feilongfl/micropython,suda/micropython,HenrikSolver/micropython,ahotam/micropython,SHA2017-badge/micropython-esp32,xyb/micropython,AriZuu/micropython,pozetroninc/micropython,dxxb/micropython,blazewicz/micropython,EcmaXp/micropython,swegener/micropython,infinnovation/micropython,dmazzella/micropython,dhylands/micropython,cnoviello/micropython,xuxiaoxin/micropython,toolmacher/micropython,swegener/micropython,jlillest/micropython,misterdanb/micropython,selste/micropython,chrisdearman/micropython,kostyll/micropython,neilh10/micropython,aethaniel/micropython,TDAbboud/micropython,firstval/micropython,torwag/micropython,redbear/micropython,adafruit/circuitpython,tobbad/micropython,tdautc19841202/micropython,blmorris/micropython,dinau/micropython,firstval/micropython,ernesto-g/micropython,tdautc19841202/micropython,tobbad/micropython,mgyenik/micropython,martinribelotta/micropython,paul-xxx/micropython,matthewelse/micropython,MrSurly/micropython,alex-march/micropython,utopiaprince/micropython,jimkmc/micropython,oopy/micropython,ernesto-g/micropython,orionrobots/micropython,adafruit/circuitpython,rubencabrera/micropython,AriZuu/micropython,xuxiaoxin/micropython,alex-march/micropython,noahchense/micropython,AriZuu/micropython,utopiaprince/micropython,EcmaXp/micropython,heisewangluo/micropython,mpalomer/micropython,emfcamp/micropython,pramasoul/micropython,danicampora/micropython,lbattraw/micropython,hiway/micropython,Vogtinator/micropython,martinribelotta/micropython,paul-xxx/micropython,firstval/micropython,lowRISC/micropython,tralamazza/micropython,warner83/micropython,adafruit/micropython,methoxid/micropystat,noahchense/micropython,heisewangluo/micropython,bvernoux/micropython,PappaPeppar/micropython,kostyll/micropython,oopy/micropython,hosaka/micropython,dinau/micropython,redbear/micropython,hiway/micropython,turbinenreiter/micropython,xuxiaoxin/micropython,tuc-osg/micropython,MrSurly/micropython-esp32,PappaPeppar/micropython,kerneltask/micropython,dhylands/micropython,KISSMonX/micropython,ericsnowcurrently/micropython,infinnovation/micropython,Peetz0r/micropython-esp32,redbear/micropython,jlillest/micropython,cloudformdesign/micropython,TDAbboud/micropython,supergis/micropython,blmorris/micropython,redbear/micropython,MrSurly/micropython,lbattraw/micropython,methoxid/micropystat,hosaka/micropython,skybird6672/micropython,ChuckM/micropython,firstval/micropython,trezor/micropython,aethaniel/micropython,Timmenem/micropython,feilongfl/micropython,MrSurly/micropython-esp32,blazewicz/micropython,methoxid/micropystat,adafruit/micropython,Vogtinator/micropython,methoxid/micropystat,feilongfl/micropython,drrk/micropython,tobbad/micropython,micropython/micropython-esp32,mpalomer/micropython,micropython/micropython-esp32,lowRISC/micropython,deshipu/micropython,matthewelse/micropython,rubencabrera/micropython,micropython/micropython-esp32,SHA2017-badge/micropython-esp32,infinnovation/micropython,tuc-osg/micropython,adafruit/circuitpython,HenrikSolver/micropython,noahchense/micropython,SungEun-Steve-Kim/test-mp,MrSurly/micropython-esp32,AriZuu/micropython,swegener/micropython,ganshun666/micropython,SungEun-Steve-Kim/test-mp,pfalcon/micropython,toolmacher/micropython,praemdonck/micropython,swegener/micropython,puuu/micropython,jmarcelino/pycom-micropython,martinribelotta/micropython,MrSurly/micropython,blazewicz/micropython,turbinenreiter/micropython,Timmenem/micropython,xyb/micropython,slzatz/micropython,cwyark/micropython,EcmaXp/micropython,lowRISC/micropython,misterdanb/micropython,emfcamp/micropython,TDAbboud/micropython,toolmacher/micropython,misterdanb/micropython,tdautc19841202/micropython,PappaPeppar/micropython,SHA2017-badge/micropython-esp32,ahotam/micropython,torwag/micropython,alex-march/micropython,pfalcon/micropython,ruffy91/micropython,jlillest/micropython,jmarcelino/pycom-micropython,adamkh/micropython,omtinez/micropython,EcmaXp/micropython,swegener/micropython,turbinenreiter/micropython,emfcamp/micropython,suda/micropython,vriera/micropython,hosaka/micropython,noahwilliamsson/micropython,MrSurly/micropython,warner83/micropython,emfcamp/micropython,hiway/micropython,dinau/micropython,aethaniel/micropython,dxxb/micropython,PappaPeppar/micropython,paul-xxx/micropython,drrk/micropython,KISSMonX/micropython,xuxiaoxin/micropython,ernesto-g/micropython,mhoffma/micropython,ceramos/micropython,blmorris/micropython,praemdonck/micropython,paul-xxx/micropython,adamkh/micropython,noahwilliamsson/micropython,SungEun-Steve-Kim/test-mp,noahchense/micropython,orionrobots/micropython,ryannathans/micropython,dxxb/micropython,ruffy91/micropython,rubencabrera/micropython,adafruit/circuitpython,KISSMonX/micropython,methoxid/micropystat,matthewelse/micropython,lbattraw/micropython,TDAbboud/micropython,stonegithubs/micropython,misterdanb/micropython,bvernoux/micropython,jimkmc/micropython,selste/micropython,pfalcon/micropython,galenhz/micropython,chrisdearman/micropython,dhylands/micropython,danicampora/micropython,alex-robbins/micropython,galenhz/micropython,bvernoux/micropython,orionrobots/micropython,omtinez/micropython,jlillest/micropython,blazewicz/micropython,utopiaprince/micropython,torwag/micropython,drrk/micropython,heisewangluo/micropython,oopy/micropython,Timmenem/micropython,turbinenreiter/micropython,infinnovation/micropython,emfcamp/micropython,puuu/micropython,matthewelse/micropython,hiway/micropython,ericsnowcurrently/micropython,pozetroninc/micropython,ChuckM/micropython,cloudformdesign/micropython,ruffy91/micropython,matthewelse/micropython,drrk/micropython,dxxb/micropython,pozetroninc/micropython,pramasoul/micropython,suda/micropython,ahotam/micropython,ceramos/micropython,jimkmc/micropython,mgyenik/micropython,tuc-osg/micropython,MrSurly/micropython-esp32,kostyll/micropython,heisewangluo/micropython,noahwilliamsson/micropython,xyb/micropython,martinribelotta/micropython,stonegithubs/micropython,xhat/micropython,KISSMonX/micropython,supergis/micropython,ernesto-g/micropython,toolmacher/micropython,ganshun666/micropython,noahwilliamsson/micropython,pozetroninc/micropython,blazewicz/micropython,cnoviello/micropython,jmarcelino/pycom-micropython,pfalcon/micropython,adafruit/circuitpython,mianos/micropython,adafruit/micropython,SungEun-Steve-Kim/test-mp,rubencabrera/micropython,xhat/micropython,pramasoul/micropython,dmazzella/micropython,alex-robbins/micropython,trezor/micropython,kostyll/micropython,SHA2017-badge/micropython-esp32,SHA2017-badge/micropython-esp32,ceramos/micropython,henriknelson/micropython,mgyenik/micropython,paul-xxx/micropython,alex-robbins/micropython,MrSurly/micropython,skybird6672/micropython,mpalomer/micropython,ericsnowcurrently/micropython,kostyll/micropython,orionrobots/micropython,Timmenem/micropython,matthewelse/micropython,firstval/micropython,stonegithubs/micropython,cwyark/micropython,mianos/micropython,henriknelson/micropython,tuc-osg/micropython,blmorris/micropython,vriera/micropython,warner83/micropython,ganshun666/micropython,vitiral/micropython,cwyark/micropython,warner83/micropython,hiway/micropython,Vogtinator/micropython,neilh10/micropython,SungEun-Steve-Kim/test-mp,jmarcelino/pycom-micropython,ChuckM/micropython,mhoffma/micropython,drrk/micropython,mpalomer/micropython,vitiral/micropython,tdautc19841202/micropython,mgyenik/micropython,ceramos/micropython,mhoffma/micropython,chrisdearman/micropython,slzatz/micropython,alex-march/micropython,cloudformdesign/micropython,praemdonck/micropython,kerneltask/micropython,supergis/micropython,ganshun666/micropython,chrisdearman/micropython,HenrikSolver/micropython,suda/micropython,cnoviello/micropython,noahwilliamsson/micropython,cnoviello/micropython,ericsnowcurrently/micropython,ryannathans/micropython,dhylands/micropython,stonegithubs/micropython,blmorris/micropython,skybird6672/micropython,ruffy91/micropython,ryannathans/micropython,pfalcon/micropython,vitiral/micropython,galenhz/micropython,ernesto-g/micropython,PappaPeppar/micropython,infinnovation/micropython,turbinenreiter/micropython,skybird6672/micropython,hosaka/micropython,mpalomer/micropython,galenhz/micropython,chrisdearman/micropython,danicampora/micropython,selste/micropython,adafruit/micropython,trezor/micropython,xhat/micropython,puuu/micropython,danicampora/micropython,vitiral/micropython,cwyark/micropython,feilongfl/micropython,Peetz0r/micropython-esp32,KISSMonX/micropython,hosaka/micropython,micropython/micropython-esp32,dinau/micropython,misterdanb/micropython,tuc-osg/micropython,Timmenem/micropython,ahotam/micropython,feilongfl/micropython,lbattraw/micropython,redbear/micropython,Vogtinator/micropython,utopiaprince/micropython,dxxb/micropython,xhat/micropython,xuxiaoxin/micropython,suda/micropython,tralamazza/micropython,cloudformdesign/micropython,torwag/micropython,praemdonck/micropython,danicampora/micropython,henriknelson/micropython,ericsnowcurrently/micropython,kerneltask/micropython,warner83/micropython,HenrikSolver/micropython,dmazzella/micropython,vriera/micropython,skybird6672/micropython