# Raspberry Pi GPIO output

**URL:** <https://forum.makecode.com/t/raspberry-pi-gpio-output/2492>\
**Category:** Help\
**Created:** [June 22, 2020, 10:07am UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492 "2020-06-22T10:07:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebodger](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@thebodger](https://forum.makecode.com/u/thebodger)\
**Post date:** [June 22, 2020, 10:07am UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492/1 "2020-06-22T10:07:17Z")

</div>

Hi,

Sorry if this has been asked before, I was wondering if there is an extension that allows output on the RPi pins? As part of an arcade cabinet project, I would like to be able to use addressable LEDs connected to the pi for led effects. does anyone know if this is possible? I’m already using some pins for button input, but wanted to see if there is any way of output too.

Thanks

---

<div class="post-metadata">

**Author:** ![infchem](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/infchem/32/1095_2.png) [@infchem](https://forum.makecode.com/u/infchem)\
**Post date:** [June 27, 2020, 9:22pm UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492/2 "2020-06-27T21:22:37Z")

</div>

Hi thebodger,

not a direct answer to your question, but maybe an addition to your idea: I’ll use a Digispark with an ATTiny85 over serial to control WS2812 LEDs from RPi0/Arcade MakeCode.  
The ATTiny85 has no hardware serial, but a SoftSerial implementation exists - 4800 Baud aren’t that much, but it’s enough.

Mirek

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [July 13, 2021, 9:05pm UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492/3 "2021-07-13T21:05:35Z")

</div>

This is a really interesting idea!

I am also under the impression that [GPIO input is supported for e.g. controllers](https://arcade.makecode.com/hardware/raspberry-pi/cardboard-control-panel/assemble):

But GPIO output on the RPi from MakeCode Arcade would also be really great!

Does anyone in the @makecode technical team(@peli?) know if this is somehow supported already, directly without @infchem nice work-around above, or if it feasibly could be achieved with an extension?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [August 6, 2021, 12:38pm UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492/4 "2021-08-06T12:38:33Z")

</div>

I don’t think we have GPIO output for the Pi. @mmoskal ?

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [August 6, 2021, 2:47pm UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492/5 "2021-08-06T14:47:57Z")

</div>

The GPIOs are not supported from user code. The runtime itself has access to them of course.

We do have serial interface though, so you could talk serial to an external board that would control the LEDs.

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [August 9, 2021, 3:35pm UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492/6 "2021-08-09T15:35:04Z")

</div>

Thanks for your reply, @mmoskal!

Sorry for not mastering all the esoteric details of your answer and needing it fed to me by a tea spoon, but may I read your answer like this?:

1. 

> The GPIOs are not supported from user code

=\> As of now one can (obviously)not control GPIO output switches from code inside the MakeCode editor.

1. 

> The runtime itself has access to them of course.

=\> It would be possible to control GPIO output switches from user code if they would be made available from the runtime by e.g. the making and use of such an extension?

---

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [August 18, 2021, 12:41am UTC](https://forum.makecode.com/t/raspberry-pi-gpio-output/2492/7 "2021-08-18T00:41:14Z")

</div>

Could it be solved with an extension talking to the runtime, then?
