# pxt-adafruit

> Adafruit Circuit Playground Express for Microsoft MakeCode

Latest version **1.6.8** (published 2021-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install pxt-adafruit
pnpm add pxt-adafruit
yarn add pxt-adafruit
bun add pxt-adafruit
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.6.8 |
| Published | 2021-01-27 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 85 |
| Maintainers | kindscript |
| Keywords | JavaScript, education, adafruit, pxt, MakeCode, Microsoft, Adafruit, Adafruit Circuit Playground |

## Links

- npm: https://www.npmjs.com/package/pxt-adafruit
- Repository: https://github.com/Microsoft/pxt-adafruit
- Homepage: https://github.com/Microsoft/pxt-adafruit#readme
- Issues: https://github.com/Microsoft/pxt-adafruit/issues
- npm.io page: https://npm.io/package/pxt-adafruit

## Dependencies (2)

- [pxt-core](https://npm.io/package/pxt-core.md) 6.2.6
- [pxt-common-packages](https://npm.io/package/pxt-common-packages.md) 8.1.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.6.8 (latest) — 2021-01-27
- 1.1.47 (dev) — 2018-10-08
- 1.1.21 (beta) — 2018-05-23
- 1.6.4 — 2020-06-09
- 1.6.3 — 2020-06-01
- 1.6.2 — 2020-06-01
- 1.6.1 — 2020-05-30
- 1.5.40 — 2020-04-08
- 1.5.39 — 2020-03-28
- 1.5.38 — 2020-03-26
- 1.4.43 — 2020-03-22
- 1.5.37 — 2020-03-22
- 1.5.36 — 2020-03-20
- 1.5.34 — 2020-03-05
- 1.5.33 — 2020-03-03
- … 211 more at https://npm.io/package/pxt-adafruit/versions

## README

# MakeCode for Adafruit Circuit Playground Express [![Build Status](https://travis-ci.org/Microsoft/pxt-adafruit.svg?branch=master)](https://travis-ci.org/Microsoft/pxt-adafruit)

This repo contains the editor hosted at https://makecode.adafruit.com .

* (optional) install [Visual Studio Code](https://code.visualstudio.com/)

## Local server setup

This setup gives you a local version of the editor and the ability to load packages from your machine. This is the setup to develop new packages.

### Setup

* install [Node.js 8+](https://nodejs.org/en/download/)
* clone https://github.com/Microsoft/pxt-adafruit to ``pxt-adafruit`` folder
* go to ``pxt-adafruit`` and run

```
npm install
```

Don't forget to periodically ``git pull`` and ``npm install`` to get the latest changes.

### Launching the server

This command launches a local web server. Note that this web server is meant for development purposes only. It was not designed or secured to be run on a web server.

```
npm run serve
```

### Creating and editing a package

* go to ``/projects`` under the ``pxt-adafruit`` folder
* clone your package repo, say ``pxt-helloworld``
* launch the server with ``npm run serve`` from the ``pxt-adafruit`` folder using ``npm serve``
* create a new project
* go to **project settings** and click on **Edit settings as text**
* add an entry in the dependency section that points to your project
```
    "dependencies": {
        "circuit-playground": "*",
        "helloworld": "file:../pxt-helloworld"
    },
```
* click on the **Blocks** icon to reload the blocks.

Once this project is setup, simply reload the editor after making changes on disk.

## Local Dev setup

This setup is needed if you plan to make changes in PXT itself. In most cases, it's a bit of an overkill
if you are building a package for the Adafruit editor.

* install [Node.js 8+](https://nodejs.org/en/download/)
* install the PXT command line
```
npm install -g pxt
```

In a common folder,

* clone https://github.com/Microsoft/pxt to ``pxt`` folder
* clone https://github.com/Microsoft/pxt-common-packages to ``pxt-common-packages`` folder
* clone https://github.com/Microsoft/pxt-adafruit to ``pxt-adafruit`` folder
* go to ``pxt`` and run

```
npm install
npm run build
```

* go to ``pxt-common-packages`` and run

```
npm install
npm link ../pxt
```

* go to ``pxt-adafruit`` and run

```
npm install
npm link ../pxt
npm link ../pxt-common-packages
```

### to run the local server

From root github folder,

```
cd pxt-adafruit
pxt serve
```

### to build and deploy a single package via command line

```
cd libs/core
pxt deploy
```

## License
MIT

## Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

## Trademarks

MICROSOFT, the Microsoft Logo, and MAKECODE are registered trademarks of Microsoft Corporation. They can only be used for the purposes described in and in accordance with Microsoft’s Trademark and Brand guidelines published at https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general.aspx. If the use is not covered in Microsoft’s published guidelines or you are not sure, please consult your legal counsel or MakeCode team (makecode@microsoft.com).

---
_Source: https://npm.io/package/pxt-adafruit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
