pxt-common-packages
Version:
Microsoft MakeCode (PXT) common packages
33 lines (21 loc) • 716 B
Markdown
Get a controller for the default programmable LED strip.
```sig
light.defaultStrip();
```
The default LED strip is either a strip that is onboard or one that is connected to the board but is set as the default.
* a new **NeoPixelStrip** controller for the default neopixel strip connected to or existing on the board.
Get the default pixel strip for the board. Make all pixels light up `green`.
```typescript
const strip = light.defaultStrip( );
strip.setAll(0x00ff00)
```
[](/reference/light/neopixelstrip/onboard-strip),
[](/reference/light/neopixelstrip/range),
[](/reference/light/neopixelstrip/set-mode)
```package
light
```