# Pygamer Extension for Accelerometer

**URL:** <https://forum.makecode.com/t/pygamer-extension-for-accelerometer/323>\
**Category:** Arcade\
**Created:** [July 9, 2019, 2:01pm UTC](https://forum.makecode.com/t/pygamer-extension-for-accelerometer/323 "2019-07-09T14:01:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clayfox](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Clayfox](https://forum.makecode.com/u/Clayfox)\
**Post date:** [July 9, 2019, 2:01pm UTC](https://forum.makecode.com/t/pygamer-extension-for-accelerometer/323/1 "2019-07-09T14:01:22Z")

</div>

Has anyone seen an extension to make use of the accelerometer or other hardware of the pygamer yet?

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [July 9, 2019, 4:35pm UTC](https://forum.makecode.com/t/pygamer-extension-for-accelerometer/323/2 "2019-07-09T16:35:06Z")

</div>

The `controller` extension has some blocks to use the accelerometer:

![36%20AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/d7b214f01ae43fb95bd1f36784c6de0f9545801e.png)

![46%20AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/d118386cbaa5414f404f7fa15e5f4b21c82db9b4.png)

If I remember correctly, for now you might need to use the [beta version](https://arcade.makecode.com/beta) the accelerometer to work on the pygamer though (and also possibly update the bootloader)

---

<div class="post-metadata">

**Author:** ![Clayfox](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Clayfox](https://forum.makecode.com/u/Clayfox)\
**Post date:** [July 11, 2019, 2:51pm UTC](https://forum.makecode.com/t/pygamer-extension-for-accelerometer/323/3 "2019-07-11T14:51:01Z")

</div>

The controller extension worked great for the accelerometer (y acceleration is flipped for the pygamer)! I made the following marble maze game (only tested on the pygamer): [https://makecode.com/\_3oKMec3kUPYX](https://makecode.com/_3oKMec3kUPYX)

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [August 8, 2019, 12:05am UTC](https://forum.makecode.com/t/pygamer-extension-for-accelerometer/323/4 "2019-08-08T00:05:10Z")

</div>

I spotted this too. I put in a ticket for it: [GH: Microsoft/pxt-arcade: on tilt up and on tilt down are reversed in simulator and PyGamer and perhaps could have better names #1190](https://github.com/microsoft/pxt-arcade/issues/1190) .

---

<div class="post-metadata">

**Author:** ![kjw](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kjw](https://forum.makecode.com/u/kjw)\
**Post date:** [August 16, 2019, 4:55pm UTC](https://forum.makecode.com/t/pygamer-extension-for-accelerometer/323/5 "2019-08-16T16:55:36Z")

</div>

A colleague spotted the sim is messed up too in `beta beta`: [GH: microsoft/pxt-arcade: Simulator tilt is visually incorrect in MakeCode Arcade Beta. #1211](https://github.com/microsoft/pxt-arcade/issues/1211).
