# Just finished another cabinet for school!

**URL:** <https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658>\
**Category:** Show & Tell\
**Tags:** make\
**Created:** [January 20, 2021, 4:51pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658 "2021-01-20T16:51:26Z")\
**Posts on this page:** 10\
**Page:** 2

<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:** [May 3, 2021, 6:12am UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/23 "2021-05-03T06:12:57Z")

</div>

> [@Dace](#):
>
> chown R pi:pi

`chown -R pi:pi` (with the _minus sign_?)

---

<div class="post-metadata">

**Author:** ![Dace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dace/32/922_2.png) [@Dace](https://forum.makecode.com/u/Dace)\
**Post date:** [May 6, 2021, 4:51pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/24 "2021-05-06T16:51:50Z")

</div>

Thanks for the response, yes it was the dash I was missing. For the arcade cabinet we decided to follow your lead @senorlloyd and created a mini Makecode unit with our laser cutter and 3D printer, added some adjustable lights via TrinketM0 and some acrylic. We also have 15 pi gamers so we are excited about teaming up our mini arcade with those. Thanks for posting such an amazing project!  
[https://twitter.com/OpenSourceLab20/status/1388349429535498241](https://twitter.com/OpenSourceLab20/status/1388349429535498241)

---

<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:** [May 6, 2021, 9:15pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/25 "2021-05-06T21:15:36Z")

</div>

Nice!!!

So did it run with McAirpos eventually?

---

<div class="post-metadata">

**Author:** ![Dace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dace/32/922_2.png) [@Dace](https://forum.makecode.com/u/Dace)\
**Post date:** [May 10, 2021, 4:06pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/26 "2021-05-10T16:06:56Z")

</div>

Yes it did, just cant get the sound to work

---

<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:** [May 17, 2021, 4:54am UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/27 "2021-05-17T04:54:28Z")

</div>

> Yes it did, just cant get the sound to work

Cool!

Which OS installation do you run and does it have ALSA installed/activated, [which is required to get sound from MakeCode Arcade games](https://forum.makecode.com/t/how-to-launch-makecode-arcade-uf2s-in-raspbian-retropie/2725/2)?

There have also been reports about difficulties getting sound through an USB audio devices. I only have experience with Raspbian regular HDMI or jack outputs using ALSA.

---

<div class="post-metadata">

**Author:** ![Dace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dace/32/922_2.png) [@Dace](https://forum.makecode.com/u/Dace)\
**Post date:** [May 18, 2021, 8:49pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/28 "2021-05-18T20:49:51Z")

</div>

Thanks for the suggestions, figured it out with [this](https://sudomod.com/forum/viewtopic.php?f=20&t=144)  
So everything is up and running thanks to your amazing application, I still have one question. How do I get out of MakeCode? With Mame I hit the start/select button at the same time and that puts me back into retroPi but with MakeCode it does not work, any ideas? thnx

---

<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:** [May 19, 2021, 3:10pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/29 "2021-05-19T15:10:10Z")

</div>

👍 Would be nice to see a clip/some pictures of your final working product when ready(and a star for the GitHub repository is always appreciated)! 😉

If you don’t mind, I will link to your post here on GitHub, since many have been asking about USB sound, and I haven’t been able to help, since I only use Raspi-regular HDMI or jack audio myself. Ok?

By default, MakeCode Arcade games use “arcade.cfg” for button mapping, where in the McAirpos configuration the (keyboard)buttons for exit, reset and menu are 1(ESC), 59(F1) and 60(F2), respectively:  
[https://raw.githubusercontent.com/Vegz78/McAirpos/master/McAirpos/MakeCode/sd/arcade.cfg](https://raw.githubusercontent.com/Vegz78/McAirpos/master/McAirpos/MakeCode/sd/arcade.cfg)

I don’t know if you use direct mapping to “arcade.cfg” for your arcade controllers(only EV\_KEY inputs), or you have EV\_ABS inputs, where you need to run the included _uinput-mapper_ for your controller to work. In the former case, you have to rewire or edit “/sd/arcade.cfg”, in the latter case you have to edit "…/uinput-mapper/configs/arcade1.py and …2.py”. Uinput-mapper tries to map the above EV\_KEY values 1, 59 and 60 as default to START, SELECT and MODE/PS buttons on a EV\_ABS controller, respectively.

Since MakeCode Arcade uses the basic “raw input events” and has no knowledge of button mappings in RetroPie and other higher levels, it is often less work to rewire according to or edit “/sd/arcade.cfg” first, maybe, if needed, edit …/uinput-mapper/configs/arcade1.py and …2.py” and then setup RetroPie button mappings afterwards(Most people with arcade setups have reported physical rewiring to fit default MakeCode mappings to be the least work).

If still stuck, please check out [https://github.com/Vegz78/McAirpos/issues/9#issuecomment-806444632](https://github.com/Vegz78/McAirpos/issues/9#issuecomment-806444632) or other solved controller related issues, or open your own issue where it’s easier for me to help you than on this forum.

Br, Vegard

---

<div class="post-metadata">

**Author:** ![Dace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dace/32/922_2.png) [@Dace](https://forum.makecode.com/u/Dace)\
**Post date:** [May 21, 2021, 4:08pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/30 "2021-05-21T16:08:03Z")

</div>

Cool, gave you start on github! I will look into the mapping tmrw, I used [this for my arcade](https://www.amazon.ca/gp/product/B07FZ3YT1G/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1) joystick and buttons if that sheds some light :). As for pics here is some pics

 ![IMG_0093.HEIC](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/253ba80013eb11dfde6a640b47f39273e408f09b.jpeg)  
 ![IMG_0094.HEIC](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/08c7b1d6162be618c303a8951e50c4b29f414d3b.jpeg)

[here is a little video of it in action](https://www.youtube.com/watch?v=_710n3wnvZg) as well [here is a link into a google folder](https://drive.google.com/drive/folders/1DqKztUTiOrupUc-5sGDpBpORPdrz5RM-?usp=sharing) with the dxf and ai files for the build as well as some info on how we built the lights. Its a bit disorganized right now but I will tidy it up with an animation of how the arcade is assembled and better pics of the wiring for the lights. Our students love this and while we do have class sets of pygamers they like to play their games on the arcade quite a bit more. We are running a big Makecode initiative in our district right now so I am really excited about the opportunities your application presents! We are thinking about getting our Engineering 11 students to build multiple mini arcades next year, which will be a fun project. Quick question, how do I place the youtube video right in my post like the ones above?

---

<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:** [May 21, 2021, 11:15pm UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/31 "2021-05-21T23:15:01Z")

</div>

Very nice!!! Thanks for sharing and for the star! Maybe @senorlloyd knows how to embed Youtube videos in the posts?

---

<div class="post-metadata">

**Author:** ![senorlloyd](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@senorlloyd](https://forum.makecode.com/u/senorlloyd)\
**Post date:** [May 22, 2021, 12:01am UTC](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658/32 "2021-05-22T00:01:34Z")

</div>

I love the lighting. Very cool.

I’m pretty sure you just put the link in and it’ll embed on its own.

[Previous page](https://forum.makecode.com/t/just-finished-another-cabinet-for-school/5658.md?page=1)
