From e9b2b239ad53847b644aba294f6642a98ac816f6 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 1 Oct 2019 14:54:17 -0700 Subject: [PATCH] More gyro lessons (#933) * updated pauseuntil * updated youtube link * updated docs --- docs/static/tutorials/turn-with-gyro.png | Bin 0 -> 10387 bytes docs/tutorials/city-shaper.md | 2 +- docs/tutorials/gyro.md | 6 ++++ docs/tutorials/turn-with-gyro.md | 43 +++++++++++++++++++++++ libs/gyro-sensor/gyro.ts | 18 ++++++++-- targetconfig.json | 2 +- 6 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 docs/static/tutorials/turn-with-gyro.png create mode 100644 docs/tutorials/turn-with-gyro.md diff --git a/docs/static/tutorials/turn-with-gyro.png b/docs/static/tutorials/turn-with-gyro.png new file mode 100644 index 0000000000000000000000000000000000000000..e804ad0cbe94f090436aef5ab8fcbf3f06af3863 GIT binary patch literal 10387 zcma)i2UJtt(l!c_5_(Bgf=EZIA|)VA>C&5YA_&qkG?f|+0z#A`LO_~Qq=zCUpn#DM z3W9VHBE1L*2!#F}Ebn*kckjQ}zt#y5&g|KuYKu?2?<}3{v85y0Hrm7Jc z*$FuC_fM)*z)uElIVRxO2_GYkYh<`C*aGl{!s)8+RWh=&81TLw2>4Eo)U@y+BcpFT z{+wvNljlH2CMc+-de!8n3GITB3_wT35woKE4IA3l<}>*~z>f{GYOQ zUpp*FI=;?Up?b?DnN1M64ZeBn<*O5+4~cM=(zS4R_bD4&2Oj@;N3BG@QD#V@`>;e6 z;WS!BZ(=)=CmI(rC+1W$H@+Q`zVl>rTy}f@9%_3$rmJSuWyr^x3i>mh(VisAwUv?G z`R0N2=NsKizBSZpnAN^~W1Xj0J)EdHIqxR5%;_MBMD}a2GV4ns80pUtQ%{w+$t-%t z*JB2w7GW_AS9B(Qgy0uRuNfosQ~0PmZ(3AbO?dlKaLtgC%Gfh+8FnmF-ZE#6{F;Dx za{lHB`I*}IJd7i~X`&jt2?vywufACug6Vg=fiZQvv34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