# micro:bit

**URL:** https://forum.makecode.com/c/microbit/11.md?page=28

[Latest](https://forum.makecode.com/latest.md) · [Categories](https://forum.makecode.com/categories.md) · [Tags](https://forum.makecode.com/tags.md)

**Page:** 29

---

## [JA Game](https://forum.makecode.com/t/ja-game/2701)

<div class="topic-metadata">

**Author:** [@Navy8](https://forum.makecode.com/u/Navy8)\
**Replies:** 0\
**Last updated:** [July 8, 2020, 3:58pm UTC](https://forum.makecode.com/t/ja-game/2701 "2020-07-08T15:58:21Z")

</div>

---

## [ringbitcar with temp](https://forum.makecode.com/t/ringbitcar-with-temp/2667)

<div class="topic-metadata">

**Author:** [@alexli](https://forum.makecode.com/u/alexli)\
**Replies:** 0\
**Last updated:** [July 5, 2020, 3:01pm UTC](https://forum.makecode.com/t/ringbitcar-with-temp/2667 "2020-07-05T15:01:33Z")

</div>

---

## [Juke box](https://forum.makecode.com/t/juke-box/2641)

<div class="topic-metadata">

**Author:** [@zfsarah](https://forum.makecode.com/u/zfsarah)\
**Replies:** 0\
**Last updated:** [July 2, 2020, 6:42pm UTC](https://forum.makecode.com/t/juke-box/2641 "2020-07-02T18:42:42Z")

</div>

---

## [Newer version of offline app for micro:bit released](https://forum.makecode.com/t/newer-version-of-offline-app-for-micro-bit-released/2597)

<div class="topic-metadata">

**Author:** [@abchatra](https://forum.makecode.com/u/abchatra)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 11:51pm UTC](https://forum.makecode.com/t/newer-version-of-offline-app-for-micro-bit-released/2597 "2020-06-30T23:51:15Z")

</div>

Newer version of the offline-app is here: https://makecode.microbit.org/offline-app Please give it a try and let us know the feedback. File issues in github.com/microsoft/pxt-microbit

---

## [초음파센서](https://forum.makecode.com/t/topic/2592)

<div class="topic-metadata">

**Author:** [@minho](https://forum.makecode.com/u/minho)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 7:16pm UTC](https://forum.makecode.com/t/topic/2592 "2020-06-30T19:16:34Z")

</div>

https://makecode.microbit.org/\_gwr8FpHKDAsC

---

## [Get input for a function in a custom block](https://forum.makecode.com/t/get-input-for-a-function-in-a-custom-block/2357)

<div class="topic-metadata">

**Author:** [@ameyrr250](https://forum.makecode.com/u/ameyrr250)\
**Replies:** 11\
**Last updated:** [June 30, 2020, 12:13pm UTC](https://forum.makecode.com/t/get-input-for-a-function-in-a-custom-block/2357 "2020-06-30T12:13:09Z")

</div>

Hi, I have a function inside a custom block and I need to get two inputs for it, a buffer a number from an enum Right now the way I am trying to get an input is //%block=“Send buffer $Buf to click $BoardNum” …(…

---

## [Initialize classObj automatically for an exposed function](https://forum.makecode.com/t/initialize-classobj-automatically-for-an-exposed-function/2583)

<div class="topic-metadata">

**Author:** [@ameyrr250](https://forum.makecode.com/u/ameyrr250)\
**Replies:** 0\
**Last updated:** [June 30, 2020, 12:03pm UTC](https://forum.makecode.com/t/initialize-classobj-automatically-for-an-exposed-function/2583 "2020-06-30T12:03:25Z")

</div>

Hi, I want to have all my functions in a class for each main block. Right now what I do is, namespace ABC{ //% block=“create lcd settings” //% blockSetVariable=“ABCObjSettings” //% weight=110 export function create…

---

## [Automatically loaded blocks in tutorial](https://forum.makecode.com/t/automatically-loaded-blocks-in-tutorial/2580)

<div class="topic-metadata">

**Author:** [@agc24](https://forum.makecode.com/u/agc24)\
**Replies:** 1\
**Last updated:** [June 30, 2020, 1:05am UTC](https://forum.makecode.com/t/automatically-loaded-blocks-in-tutorial/2580 "2020-06-30T01:05:13Z")

</div>

Hello, Is there a way to remove the on start and forever blocks that automatically load when a custom tutorial loads? My students get confused if the forever block is on the screen, but not necessary for the tutorial. T…

---

## [Failed cast on null error](https://forum.makecode.com/t/failed-cast-on-null-error/2575)

<div class="topic-metadata">

**Author:** [@ameyrr250](https://forum.makecode.com/u/ameyrr250)\
**Replies:** 0\
**Last updated:** [June 29, 2020, 1:25pm UTC](https://forum.makecode.com/t/failed-cast-on-null-error/2575 "2020-06-29T13:25:35Z")

</div>

Hi, I get the error “failed cast on null” for the code below. It only occurs on runtime. If I keep the export functions outside the class and make an object with let forceobj= new Force() I don’t get this error Is th…

---

## [테스트12](https://forum.makecode.com/t/topic/2567)

<div class="topic-metadata">

**Author:** [@kkj](https://forum.makecode.com/u/kkj)\
**Replies:** 0\
**Last updated:** [June 28, 2020, 5:48pm UTC](https://forum.makecode.com/t/topic/2567 "2020-06-28T17:48:11Z")

</div>

---

## [Github issues](https://forum.makecode.com/t/github-issues/2519)

<div class="topic-metadata">

**Author:** [@MINTGenie](https://forum.makecode.com/u/MINTGenie)\
**Replies:** 1\
**Last updated:** [June 24, 2020, 12:20am UTC](https://forum.makecode.com/t/github-issues/2519 "2020-06-24T00:20:58Z")

</div>

Issue 1: I noticed that if you create a new project with a name (say “tmp”) and then save it with a different name (say “msg sender”), then the github project is still created with the original name (/tmp). Is this expe…

---

## [Perfect Projects](https://forum.makecode.com/t/perfect-projects/2503)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 0\
**Last updated:** [June 22, 2020, 6:48pm UTC](https://forum.makecode.com/t/perfect-projects/2503 "2020-06-22T18:48:53Z")

</div>

I’ve created an extension for the micro:bit MakeCode editor that has different fun projects in. https://github.com/dillonbarnes/Perfect-Projects/tree/master This is new and under development. If you have any projects t…

---

## [Coffee Shop!](https://forum.makecode.com/t/coffee-shop/2502)

<div class="topic-metadata">

**Author:** [@3-14Ben](https://forum.makecode.com/u/3-14Ben)\
**Replies:** 1\
**Last updated:** [June 22, 2020, 5:34pm UTC](https://forum.makecode.com/t/coffee-shop/2502 "2020-06-22T17:34:55Z")

</div>

This is my Code for my coffee shop! :warning: :no\_entry: :white\_check\_mark: Have Fun!!!

---

## [https://makecode.microbit.org/\_C0rYdJKxP2WF](https://forum.makecode.com/t/https-makecode-microbit-org-c0rydjkxp2wf/2498)

<div class="topic-metadata">

**Author:** [@albin](https://forum.makecode.com/u/albin)\
**Replies:** 1\
**Last updated:** [June 22, 2020, 4:33pm UTC](https://forum.makecode.com/t/https-makecode-microbit-org-c0rydjkxp2wf/2498 "2020-06-22T16:33:34Z")

</div>

https://makecode.microbit.org/\_A5oC7M6RmYsC

---

## [Microsoft MakeCode for micro:bit](https://forum.makecode.com/t/microsoft-makecode-for-micro-bit/2318)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 6\
**Last updated:** [June 21, 2020, 12:34pm UTC](https://forum.makecode.com/t/microsoft-makecode-for-micro-bit/2318 "2020-06-21T12:34:33Z")

</div>

Hi. When the new MakeCode editor goes live on June 12th, will the old editor (the current one now) still be available to use? If it is, how do you get to it and how long will it be kept up? Thanks, Dillon

---

## [Error Message Window - looking for feedback!](https://forum.makecode.com/t/error-message-window-looking-for-feedback/2477)

<div class="topic-metadata">

**Author:** [@jacqueline.russell](https://forum.makecode.com/u/jacqueline.russell)\
**Replies:** 0\
**Last updated:** [June 19, 2020, 6:16pm UTC](https://forum.makecode.com/t/error-message-window-looking-for-feedback/2477 "2020-06-19T18:16:52Z")

</div>

Hi everyone! We’re looking to get some feedback on how we’re surfacing error messages in JavaScript and Python code editor windows. Please send us your thoughts via this survey: https://www.surveymonkey.com/r/P2SLVFC …

---

## [Makecode assembler: problems parsing subroutine returns?](https://forum.makecode.com/t/makecode-assembler-problems-parsing-subroutine-returns/2429)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 3\
**Last updated:** [June 15, 2020, 9:46pm UTC](https://forum.makecode.com/t/makecode-assembler-problems-parsing-subroutine-returns/2429 "2020-06-15T21:46:02Z")

</div>

I haven’t studied assemblers in seriousness so I’m not up on all the mark-ups and complications. Maybe there is something that will solve this problem, I don’t know: Why is that when I write a function in ARM assembler …

---

## [pruebauno](https://forum.makecode.com/t/pruebauno/2431)

<div class="topic-metadata">

**Author:** [@luisfegomezPE](https://forum.makecode.com/u/luisfegomezPE)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 4:03pm UTC](https://forum.makecode.com/t/pruebauno/2431 "2020-06-15T16:03:05Z")

</div>

---

## [Makecode & Editing Markdown: Line Wrap?](https://forum.makecode.com/t/makecode-editing-markdown-line-wrap/2364)

<div class="topic-metadata">

**Author:** [@bsiever](https://forum.makecode.com/u/bsiever)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 5:54pm UTC](https://forum.makecode.com/t/makecode-editing-markdown-line-wrap/2364 "2020-06-10T17:54:02Z")

</div>

Previewing MakeCode-flavored markdown is great…but is there any way to enable some sort of line wrap? I didn’t notice an option for it in the editor’s command palette. It’s not a critical feature, but it makes some edi…

---

## [Sensor extension + Arduino ide for micro:bit](https://forum.makecode.com/t/sensor-extension-arduino-ide-for-micro-bit/2325)

<div class="topic-metadata">

**Author:** [@mbf](https://forum.makecode.com/u/mbf)\
**Replies:** 3\
**Last updated:** [June 9, 2020, 4:29pm UTC](https://forum.makecode.com/t/sensor-extension-arduino-ide-for-micro-bit/2325 "2020-06-09T16:29:14Z")

</div>

Hi! I wanna use a co2 sensor for the micro:bit… how can i use it without an extension for makecode? I’ve just found one in github but when I put the link in the browser extension it doesn’t find it. The sensor is CCS811…

---

## [Assembler in extensions - subroutine question](https://forum.makecode.com/t/assembler-in-extensions-subroutine-question/2348)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 1\
**Last updated:** [June 9, 2020, 12:50pm UTC](https://forum.makecode.com/t/assembler-in-extensions-subroutine-question/2348 "2020-06-09T12:50:59Z")

</div>

Recently I wrote an assembler routine which I successfully incorporated into an extension alongside both Typescript and C++, using a .asm file, a .ts file and a .cpp file. For fun I thought I would attempt a couple of o…

---

## [Animation](https://forum.makecode.com/t/animation/2350)

<div class="topic-metadata">

**Author:** [@KeveZeer](https://forum.makecode.com/u/KeveZeer)\
**Replies:** 0\
**Last updated:** [June 9, 2020, 12:45pm UTC](https://forum.makecode.com/t/animation/2350 "2020-06-09T12:45:53Z")

</div>

/\*\* Animation blocks \*/ //% weight=100 color=#27a186 icon=“:sunny:” namespace animation { /\*\* \* Run The Flashing Heart Code \*/ //% blockId=animationflashingheart //% block="Flashing Heart" export function f…

---

## [Custom Blocks + Tutorial Bug - micro:bit Beta 2020](https://forum.makecode.com/t/custom-blocks-tutorial-bug-micro-bit-beta-2020/2335)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 5:05pm UTC](https://forum.makecode.com/t/custom-blocks-tutorial-bug-micro-bit-beta-2020/2335 "2020-06-08T17:05:11Z")

</div>

Hey Microsoft MakeCode for micro:bit developers. Today, I found a bug in the beta editor. When creating a tutorial in GitHub, you can’t include an extension. Here are two snippets of a tutorial.md file. Doesn’t include…

---

## [WebUSB - micro:bit - Not working](https://forum.makecode.com/t/webusb-micro-bit-not-working/2329)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 3\
**Last updated:** [June 7, 2020, 3:00pm UTC](https://forum.makecode.com/t/webusb-micro-bit-not-working/2329 "2020-06-07T15:00:09Z")

</div>

Hi. When using makecode.microbit.org/beta, I was using the WebUSB one-click download, but it wasn’t working. Is this just me, or is there a bug in the editor? Thanks.

---

## [Screenmagic](https://forum.makecode.com/t/screenmagic/2268)

<div class="topic-metadata">

**Author:** [@KeveZeer](https://forum.makecode.com/u/KeveZeer)\
**Replies:** 1\
**Last updated:** [June 6, 2020, 11:19am UTC](https://forum.makecode.com/t/screenmagic/2268 "2020-06-06T11:19:18Z")

</div>

namespace screenMagic { /\*\* \* Plot at LEDs for index \*/ //% blockId="screenmagicplotat" //% block="Plot At $index" //% index.min=0 index.max=25 export function plotAt(index: number): void{ index| 0 con…

---

## [Error!](https://forum.makecode.com/t/error/1603)

<div class="topic-metadata">

**Author:** [@KeveZeer](https://forum.makecode.com/u/KeveZeer)\
**Replies:** 1\
**Last updated:** [June 6, 2020, 11:11am UTC](https://forum.makecode.com/t/error/1603 "2020-06-06T11:11:20Z")

</div>

---

## [Create new blocks comparable to for-loops+functions?](https://forum.makecode.com/t/create-new-blocks-comparable-to-for-loops-functions/2320)

<div class="topic-metadata">

**Author:** [@bsiever](https://forum.makecode.com/u/bsiever)\
**Replies:** 6\
**Last updated:** [June 5, 2020, 5:40pm UTC](https://forum.makecode.com/t/create-new-blocks-comparable-to-for-loops-functions/2320 "2020-06-05T17:40:14Z")

</div>

Hi, Is there any way to make blocks that are somewhat like for-loops combined with functions: they can be placed in-line with other blocks (like for-loops) and can have parameter values that can be used (like functions…

---

## [Reaction Game](https://forum.makecode.com/t/reaction-game/2322)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 0\
**Last updated:** [June 5, 2020, 2:31pm UTC](https://forum.makecode.com/t/reaction-game/2322 "2020-06-05T14:31:47Z")

</div>

Hi, Today, I created a reaction game for my micro:bit. You will need to do a bit of DIY to make your own, but it’s really easy! All you need is some foil, cardboard and four crocodile clips. If you look at this webpage,…

---

## [Another project vanishes from the editor](https://forum.makecode.com/t/another-project-vanishes-from-the-editor/2321)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 1\
**Last updated:** [June 5, 2020, 2:01pm UTC](https://forum.makecode.com/t/another-project-vanishes-from-the-editor/2321 "2020-06-05T14:01:54Z")

</div>

Ugh, I opened a second tab on my browser (the beta Makecode editor) to look at an extension that was being used in the project in the first tab. I switched back to the first tab and when I did that it switched from Javas…

---

## [Trying to make object oriented (Class based) typescripts in blocks for microbit](https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275)

<div class="topic-metadata">

**Author:** [@ameyrr250](https://forum.makecode.com/u/ameyrr250)\
**Replies:** 3\
**Last updated:** [May 31, 2020, 3:37pm UTC](https://forum.makecode.com/t/trying-to-make-object-oriented-class-based-typescripts-in-blocks-for-microbit/2275 "2020-05-31T15:37:59Z")

</div>

Hi, I have two questions I want to make some typescript files, add blocks and test them on microbit. I have tried multiple ways and instructions of installing and using the pxt-microbit, including this “https://gith…

[Previous page](https://forum.makecode.com/c/microbit/11.md?page=27)

[Next page](https://forum.makecode.com/c/microbit/11.md?page=29)
