# micro:bit

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

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

**Page:** 30

---

## [All projects gone from beta](https://forum.makecode.com/t/all-projects-gone-from-beta/2241)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 4\
**Last updated:** [May 27, 2020, 6:12pm UTC](https://forum.makecode.com/t/all-projects-gone-from-beta/2241 "2020-05-27T18:12:45Z")

</div>

All the projects from my Makecode (beta) Microbit workspace have vanished this morning. I just loaded up the default version rather than the beta, and they are all there, so I am quickly syncing with Github a few change…

---

## [Custom.ts Trouble](https://forum.makecode.com/t/custom-ts-trouble/2208)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 1\
**Last updated:** [May 24, 2020, 3:47pm UTC](https://forum.makecode.com/t/custom-ts-trouble/2208 "2020-05-24T15:47:48Z")

</div>

On the beta editor, https://www.makecode.microbit.org/beta, I’m creating custom blocks and am having a bit of trouble. On the live lesson, https://mixer.com/MakeCode?vod=pSTXmomLbkK2SubN1eNlFA, it shows that you just pr…

---

## ["844" GC errors](https://forum.makecode.com/t/844-gc-errors/2205)

<div class="topic-metadata">

**Author:** [@cpt.credible](https://forum.makecode.com/u/cpt.credible)\
**Replies:** 0\
**Last updated:** [May 24, 2020, 1:12pm UTC](https://forum.makecode.com/t/844-gc-errors/2205 "2020-05-24T13:12:03Z")

</div>

I am having trouble getting an extension that I wrote mainly under version 1 working under version 2. I am getting the error message 844 “GC allocation failed for requested number of bytes.” when i upload to the micro:b…

---

## [Tutorial Help](https://forum.makecode.com/t/tutorial-help/2137)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 9\
**Last updated:** [May 22, 2020, 5:51pm UTC](https://forum.makecode.com/t/tutorial-help/2137 "2020-05-22T17:51:55Z")

</div>

How do you make a block colour in tutorials? For example, in the Name Tag tutorial, on Step 2 the Show String is written in blue. How do you write like this?

---

## [Using assembler routines in both JS and C++?](https://forum.makecode.com/t/using-assembler-routines-in-both-js-and-c/2155)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 9\
**Last updated:** [May 21, 2020, 7:08pm UTC](https://forum.makecode.com/t/using-assembler-routines-in-both-js-and-c/2155 "2020-05-21T19:08:32Z")

</div>

I understand how to call an assember routine from Javascript because there is a shim in a TS file that accompanies the assembler, such as the following, where one can also rename the function from myAssemberCode() to wid…

---

## [Another bug "the project is already open elsewhere"](https://forum.makecode.com/t/another-bug-the-project-is-already-open-elsewhere/2154)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 1:18pm UTC](https://forum.makecode.com/t/another-bug-the-project-is-already-open-elsewhere/2154 "2020-05-20T13:18:33Z")

</div>

The error - in a red warning box - occasionally appears in the Makecode editor. In connection with the bug I just descibed a few minutes ago, I just tried edtiing my main extension from within the project. I was not edi…

---

## [Bugs in the Makecode editor - updating extensions](https://forum.makecode.com/t/bugs-in-the-makecode-editor-updating-extensions/2153)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 12:56pm UTC](https://forum.makecode.com/t/bugs-in-the-makecode-editor-updating-extensions/2153 "2020-05-20T12:56:47Z")

</div>

The beta of the Makecode editor is very problematic if you are updating extensions which other extensions are dependent on. For some fun I experimented with some assembler code. I therefore have an extension (the “main …

---

## [Releasing SPI pins](https://forum.makecode.com/t/releasing-spi-pins/2141)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 1\
**Last updated:** [May 19, 2020, 5:48pm UTC](https://forum.makecode.com/t/releasing-spi-pins/2141 "2020-05-19T17:48:46Z")

</div>

Imagine you use the SPI pins to control a device in conjunction with another digital ouput pin P0 as the chip select. Then later in the code you need to send ordinary digital signals to the CLK and MOSI pins by using pi…

---

## [Bug in the multi editorr](https://forum.makecode.com/t/bug-in-the-multi-editorr/2140)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 1\
**Last updated:** [May 19, 2020, 5:19pm UTC](https://forum.makecode.com/t/bug-in-the-multi-editorr/2140 "2020-05-19T17:19:41Z")

</div>

In the multi editor, you can’t use Crowdin translation. I don’t know if this is known, but when you log in to Crowdin, it takes you to the normal beta editor not the multi one.

---

## [Custom blocks](https://forum.makecode.com/t/custom-blocks/2138)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 3\
**Last updated:** [May 19, 2020, 4:55pm UTC](https://forum.makecode.com/t/custom-blocks/2138 "2020-05-19T16:55:07Z")

</div>

Hi. Please can someone answer this question? I’m talking about the beta GitHub integration. If it’s needed, my project repository is below. https://github.com/dillonbarnes/smiley-frowney How do you change the colour…

---

## [Side-by-side Radio Editor and Tutorials](https://forum.makecode.com/t/side-by-side-radio-editor-and-tutorials/2122)

<div class="topic-metadata">

**Author:** [@AlasdairAtKitronik](https://forum.makecode.com/u/AlasdairAtKitronik)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 7:44am UTC](https://forum.makecode.com/t/side-by-side-radio-editor-and-tutorials/2122 "2020-05-19T07:44:48Z")

</div>

@peli Was wondering if you know any more information about the side-by-side radio editor for the micro:bit, and then how that might integrate into doing side-by-side tutorials for radio with the micro:bit - I can’t find …

---

## [BETA Translator Problems](https://forum.makecode.com/t/beta-translator-problems/2111)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 1\
**Last updated:** [May 17, 2020, 3:30pm UTC](https://forum.makecode.com/t/beta-translator-problems/2111 "2020-05-17T15:30:17Z")

</div>

Hi. On the beta editor, the Crowdin translator doesn’t work. It says that you must join the translation team. Should I request permission to join?

---

## [Gyro sensor MPU6050 or MPU9250](https://forum.makecode.com/t/gyro-sensor-mpu6050-or-mpu9250/2105)

<div class="topic-metadata">

**Author:** [@Jesua](https://forum.makecode.com/u/Jesua)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 3:10am UTC](https://forum.makecode.com/t/gyro-sensor-mpu6050-or-mpu9250/2105 "2020-05-17T03:10:20Z")

</div>

Hi guys I’m working on a balancing car robot using the MicroBit. I have MPU-6050 and MPU-9250 to use one of them on the robot. Does it need an extension to use it, if yes can you provide me the extension plz? Thank yo…

---

## [Help - Extension Building](https://forum.makecode.com/t/help-extension-building/2106)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 7\
**Last updated:** [May 16, 2020, 5:23pm UTC](https://forum.makecode.com/t/help-extension-building/2106 "2020-05-16T17:23:54Z")

</div>

Hi I’m developing an extension with GitHub and would like some help. I am new to developing extensions and want to know how to add a block that turns on a certain amount of LEDs. If you use the following link, you can…

---

## [SPI write crashes the microbit. I'm baffled](https://forum.makecode.com/t/spi-write-crashes-the-microbit-im-baffled/2091)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 2\
**Last updated:** [May 14, 2020, 11:13pm UTC](https://forum.makecode.com/t/spi-write-crashes-the-microbit-im-baffled/2091 "2020-05-14T23:13:18Z")

</div>

I have a situation in which a write to SPI seems to crash the Microbit. I’ve been looking at this for an hour or two now. I really cannot see what is wrong. My Makecode extension to drive a Nokia 3310 LCD screen (84 x 4…

---

## [Only 4 parameters allowed in C functions? Really?](https://forum.makecode.com/t/only-4-parameters-allowed-in-c-functions-really/2070)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 7\
**Last updated:** [May 13, 2020, 7:38pm UTC](https://forum.makecode.com/t/only-4-parameters-allowed-in-c-functions-really/2070 "2020-05-13T19:38:35Z")

</div>

It has taken me rather a long time tonight to realise that the only thing stopping a C function, that I’ve put in a .cpp file as part of an extension I’m writing, from compiling correctly is that it has five parameters. …

---

## [Github BETA integration](https://forum.makecode.com/t/github-beta-integration/2060)

<div class="topic-metadata">

**Author:** [@DillonB07](https://forum.makecode.com/u/DillonB07)\
**Replies:** 1\
**Last updated:** [May 12, 2020, 5:11pm UTC](https://forum.makecode.com/t/github-beta-integration/2060 "2020-05-12T17:11:59Z")

</div>

Hi. I’m using the new BETA GitHub integration and have forked an extension. Is it possible to create my own GitHub Page site for a forked extension? Original extension by pelikhan: https://github.com/pelikhan/microbit…

---

## [Accessing the pins in C?](https://forum.makecode.com/t/accessing-the-pins-in-c/2029)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 8\
**Last updated:** [May 10, 2020, 8:42pm UTC](https://forum.makecode.com/t/accessing-the-pins-in-c/2029 "2020-05-10T20:42:59Z")

</div>

Erm, why am I finding it totally impossible to get an extension to compile when I try to access the Microbit pins in the C code in extension.cpp? I’m completely baffled by this? What is wrong with pins.spiWrite(0) or pin…

---

## [Defining constants used in both .cpp and .ts?](https://forum.makecode.com/t/defining-constants-used-in-both-cpp-and-ts/2025)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 0\
**Last updated:** [May 9, 2020, 9:07pm UTC](https://forum.makecode.com/t/defining-constants-used-in-both-cpp-and-ts/2025 "2020-05-09T21:07:02Z")

</div>

I don’t fully understand how the .ts, .h and .cpp files are sewn together and how best to declare a constant, let’s say LPWIDTH = 6 which I would like to use within both a .ts file and a .cpp file of an extension I would…

---

## [Cricket Board No Longer Supported by Mircobit Makecode?](https://forum.makecode.com/t/cricket-board-no-longer-supported-by-mircobit-makecode/1918)

<div class="topic-metadata">

**Author:** [@rymc88](https://forum.makecode.com/u/rymc88)\
**Replies:** 7\
**Last updated:** [May 5, 2020, 11:47pm UTC](https://forum.makecode.com/t/cricket-board-no-longer-supported-by-mircobit-makecode/1918 "2020-05-05T23:47:52Z")

</div>

I just wondering if the Cricket Board from Adafruit is no longer support with Makecode Microbit. It does not appear in extensions and I was wondering if it was going to come back. I need to know before considering to pur…

---

## [Anyone online now help me with Github PR on my repository?](https://forum.makecode.com/t/anyone-online-now-help-me-with-github-pr-on-my-repository/1908)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 29\
**Last updated:** [May 5, 2020, 4:23am UTC](https://forum.makecode.com/t/anyone-online-now-help-me-with-github-pr-on-my-repository/1908 "2020-05-05T04:23:38Z")

</div>

Anyone please, how do I deal with a substantial pull request I have made on my own repository (Microbit extension) just now with several days’ work? Where is the button on Github that says “commit all these changes as su…

---

## [Short video of my home-made games console](https://forum.makecode.com/t/short-video-of-my-home-made-games-console/1935)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 5:09pm UTC](https://forum.makecode.com/t/short-video-of-my-home-made-games-console/1935 "2020-05-04T17:09:57Z")

</div>

Here is a tweet with a two short video clips of the home-grown games console I’ve made for the Microbit for a bit of home game programming with our 11yr-old. I’ve finished all the over-engineered graphics routines for it…

---

## [Timers-Servos-Music = Problems](https://forum.makecode.com/t/timers-servos-music-problems/1928)

<div class="topic-metadata">

**Author:** [@Thomasevers2517](https://forum.makecode.com/u/Thomasevers2517)\
**Replies:** 0\
**Last updated:** [May 3, 2020, 10:14am UTC](https://forum.makecode.com/t/timers-servos-music-problems/1928 "2020-05-03T10:14:11Z")

</div>

Microbit seems to have an interferance between music and servos. From what I understand all PWM pins use the SAME timer, and because music and servocontrol both change the pulse width this causes errors. I am experienc…

---

## [Don't understand "enum emitted as constants for drop-downs"](https://forum.makecode.com/t/dont-understand-enum-emitted-as-constants-for-drop-downs/1852)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 8\
**Last updated:** [April 27, 2020, 8:19pm UTC](https://forum.makecode.com/t/dont-understand-enum-emitted-as-constants-for-drop-downs/1852 "2020-04-27T20:19:16Z")

</div>

Can anyone please help explain this? The reference doesn’t appear to make enough sense to me. I have a main.ts for a game and an extension defining an extension in a namespace. Here is what is in the extension.ts: //% …

---

## [Block fields - forcing specific number of lines?](https://forum.makecode.com/t/block-fields-forcing-specific-number-of-lines/1850)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 0\
**Last updated:** [April 27, 2020, 11:31am UTC](https://forum.makecode.com/t/block-fields-forcing-specific-number-of-lines/1850 "2020-04-27T11:31:58Z")

</div>

Using the inlineInputMode allows a block to have fields all inline. But is it possible to force exactly two lines for the block’s appearance? Take for example the following function which has a drop-down list (Line/Box/R…

---

## [Microbit font inconsistencies](https://forum.makecode.com/t/microbit-font-inconsistencies/1839)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 3\
**Last updated:** [April 26, 2020, 9:11pm UTC](https://forum.makecode.com/t/microbit-font-inconsistencies/1839 "2020-04-26T21:11:42Z")

</div>

I’ve just noticed, whilst working on the text/char and text scrolling functions of my extension for the 17x7 LED matrix, that the internal Microbit font is rather oddly constructed. Obviously characters which are five p…

---

## [Arrays of classes and seemingly redundant stuff?](https://forum.makecode.com/t/arrays-of-classes-and-seemingly-redundant-stuff/1836)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 3\
**Last updated:** [April 25, 2020, 7:14pm UTC](https://forum.makecode.com/t/arrays-of-classes-and-seemingly-redundant-stuff/1836 "2020-04-25T19:14:46Z")

</div>

Whilst getting to grips with Makecode, Typescript etc over the last few weeks, I pored over a lot of things. One thing that puzzles me is the way in which the “games.ts” Game extension to Microbit Makecode is written. Th…

---

## [Deleting buffers?](https://forum.makecode.com/t/deleting-buffers/1835)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 3\
**Last updated:** [April 25, 2020, 6:45pm UTC](https://forum.makecode.com/t/deleting-buffers/1835 "2020-04-25T18:45:13Z")

</div>

In the extension I’m writing I may need to change the size of a buffer (which assumes its contents will be discarded and started anew). How best should I delete a buffer so that a new buffer of a different size might be …

---

## [My extension for the Pimoroni scrollbit](https://forum.makecode.com/t/my-extension-for-the-pimoroni-scrollbit/1822)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 7\
**Last updated:** [April 24, 2020, 8:28pm UTC](https://forum.makecode.com/t/my-extension-for-the-pimoroni-scrollbit/1822 "2020-04-24T20:28:50Z")

</div>

My graphics extension for the Pomoroni Scroll:bit 17x7 LED matrix is now on github. The README.md file is 75% complete but more functions (for the window mode) will be added later. All the pixel, line, scroll and text…

---

## [Enhanced extension for the Pimoroni - coming soon](https://forum.makecode.com/t/enhanced-extension-for-the-pimoroni-coming-soon/1774)

<div class="topic-metadata">

**Author:** [@mkilpatr](https://forum.makecode.com/u/mkilpatr)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 2:18pm UTC](https://forum.makecode.com/t/enhanced-extension-for-the-pimoroni-coming-soon/1774 "2020-04-22T14:18:09Z")

</div>

I’m in the middle of writing a versatile extension for the Pimoroni Scroll:bit 17x7 LED matrix for Micro:bit as shown here: https://www.kitronik.co.uk/46129-scrollbit-led-display-for-microbit.html When I’ve finished I …

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

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