# How to use the extended function GY-521

**URL:** <https://forum.makecode.com/t/how-to-use-the-extended-function-gy-521/3182>\
**Category:** Help\
**Created:** [August 21, 2020, 6:14am UTC](https://forum.makecode.com/t/how-to-use-the-extended-function-gy-521/3182 "2020-08-21T06:14:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TKG1122](https://avatars.discourse-cdn.com/v4/letter/t/b2d939/32.png) [@TKG1122](https://forum.makecode.com/u/TKG1122)\
**Post date:** [August 21, 2020, 6:14am UTC](https://forum.makecode.com/t/how-to-use-the-extended-function-gy-521/3182/1 "2020-08-21T06:14:04Z")

</div>

Even if you enter the sample code in “main.ts” of JavaScript of MakeCode, there is a problem in “microbit\_GY521.initialise();” of the extension function GY-521 and it cannot be programmed in the microbit.  
Please tell me how to resolve.

[https://makecode.microbit.org/pkg/pauldfoster/pxt-microbit-gy521](https://makecode.microbit.org/pkg/pauldfoster/pxt-microbit-gy521)
