# Add PyBadge to Maker.makecode.com

**URL:** https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314
**Category:** Maker
**Created:** [March 2, 2020, 11:02pm UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314 "2020-03-02T23:02:40Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Mr-Coxall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-coxall/32/513_2.png) [@Mr-Coxall](https://forum.makecode.com/u/Mr-Coxall)
#### Post date: [March 2, 2020, 11:02pm UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/1 "2020-03-02T23:02:40Z")

</div>

I was just wondering if there is any technical issue that would prevent me from adding in the PyBadge board to make code?

I have read the “add a new board” section and it does seem possible to me. I know it will not have any header pins and I am not sure how the display will look when added, but in theory, I think it should work.

Anybody think otherwise?

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [March 2, 2020, 11:19pm UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/2 "2020-03-02T23:19:06Z")

</div>

If I may ask, why are you using Maker instead of Arcade? You should be able to do everything you can in Maker also in Arcade. To access the pins, we have an Edge Connector package

---

<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: [March 2, 2020, 11:20pm UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/4 "2020-03-02T23:20:26Z")

</div>

Add the “feather” package for the pybadge to access the pins.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [March 2, 2020, 11:21pm UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/5 "2020-03-02T23:21:13Z")

</div>

I think “edge connector” also works. At least, this blinky program works on my PyBadge LC [https://makecode.com/\_g2vX4jhqb4mV](https://makecode.com/_g2vX4jhqb4mV)

---

<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: [March 2, 2020, 11:32pm UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/6 "2020-03-02T23:32:16Z")

</div>

It might for some pins but the pybadge has a feather footprint so use that package is better.

---

<div class="post-metadata">

### Author: ![Mr-Coxall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-coxall/32/513_2.png) [@Mr-Coxall](https://forum.makecode.com/u/Mr-Coxall)
#### Post date: [March 3, 2020, 12:10am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/7 "2020-03-03T00:10:54Z")

</div>

I want to code sensors using the STEMMA connections.  
Am I missing something in Arcade that will let me do that?

---

<div class="post-metadata">

### Author: ![Mr-Coxall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-coxall/32/513_2.png) [@Mr-Coxall](https://forum.makecode.com/u/Mr-Coxall)
#### Post date: [March 3, 2020, 12:15am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/8 "2020-03-03T00:15:58Z")

</div>

Is there a way in Arcade to access the Neopixels?

---

<div class="post-metadata">

### Author: ![Mr-Coxall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-coxall/32/513_2.png) [@Mr-Coxall](https://forum.makecode.com/u/Mr-Coxall)
#### Post date: [March 3, 2020, 12:22am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/9 "2020-03-03T00:22:01Z")

</div>

The answer to the NeoPixel question is yes, I got it working with the “light” extension.

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [March 3, 2020, 12:27am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/10 "2020-03-03T00:27:45Z")

</div>

If you add the feather extension, you’ll get a “pins” category with blocks that you can use for digital, pwm, analog, and i2c over pins. Here’s a gif of me adding it to a project:

 ![2020-03-02 16.25.38](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/fa09c5379f21dabaafd1067050e8ec6b3d2c8e12.gif)

---

<div class="post-metadata">

### Author: ![Mr-Coxall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-coxall/32/513_2.png) [@Mr-Coxall](https://forum.makecode.com/u/Mr-Coxall)
#### Post date: [March 3, 2020, 12:34am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/11 "2020-03-03T00:34:33Z")

</div>

When I add in the feather or the edge connector extension, I am getting an error:  
“Program Error: Cannot read property “digitalWritePin” of null”.

I think the config file in Arcade is not including digital pins for PyBadge. The programs work, you just get this error. Not great for students.

"

 ![Screenshot 2020-03-02 at 7.29.32 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/1X/baca836bde4b9010688ee9766f45f5c393abe2eb.png)

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [March 3, 2020, 12:37am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/12 "2020-03-03T00:37:00Z")

</div>

Agreed, it should not error out. We have an issue tracking that error here: [https://github.com/microsoft/pxt-arcade/issues/1210](https://github.com/microsoft/pxt-arcade/issues/1210)

The simulator will not work with any pins code. As you said, it should work fine on the device itself.

---

<div class="post-metadata">

### Author: ![Mr-Coxall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-coxall/32/513_2.png) [@Mr-Coxall](https://forum.makecode.com/u/Mr-Coxall)
#### Post date: [March 3, 2020, 12:44am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/13 "2020-03-03T00:44:54Z")

</div>

Thanks

---

<div class="post-metadata">

### Author: ![Mr-Coxall](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mr-coxall/32/513_2.png) [@Mr-Coxall](https://forum.makecode.com/u/Mr-Coxall)
#### Post date: [March 3, 2020, 12:54am UTC](https://forum.makecode.com/t/add-pybadge-to-maker-makecode-com/1314/14 "2020-03-03T00:54:15Z")

</div>

I think I have 2 further issues that will make using Arcade not practical.  
I2C does seem to work, so that is good.

I also want to be able to show results from the sensors on the screen.  
The issue is I can not see any “non blocking” text out options.  
You always have to press “A” to let the program continue.

I also want to be able to “log” the data to a file on the PyBadge, so that the values can be imported into a spreadsheet for analysis and graphing.  
I do not think you can do this from Arcade.

Thanks for your help.
