Merge pull request #164 from thomasdenney/master
Fixed '@params' in Neopixel blocks' docs and 'about about'
This commit is contained in:
commit
2d09aef287
@ -31,7 +31,7 @@ Just like Arduino, the micro:bit can be connected to and interact with sensors,
|
||||
|
||||
## Hardware: The Device
|
||||
|
||||
Learn about about the [hardware components](/device) of the micro:bit to make the most of it!
|
||||
Learn about the [hardware components](/device) of the micro:bit to make the most of it!
|
||||
|
||||
## Programming: Blocks or JavaScript
|
||||
|
||||
|
@ -74,7 +74,7 @@ namespace neopixel {
|
||||
|
||||
/**
|
||||
* Shift LEDs forward and clear with zeros.
|
||||
* @params off number of pixels to shift forward, eg: 1
|
||||
* @param off number of pixels to shift forward, eg: 1
|
||||
*/
|
||||
//% blockId="neopixel_shift" block="%strip|shift pixels forward by %off" blockGap=8
|
||||
//% weight=40
|
||||
@ -84,7 +84,7 @@ namespace neopixel {
|
||||
|
||||
/**
|
||||
* Rotate LEDs forward.
|
||||
* @params off number of pixels to rotate forward, eg: 1
|
||||
* @param off number of pixels to rotate forward, eg: 1
|
||||
*/
|
||||
//% blockId="neopixel_rotate" block="%strip|rotate pixels forward by %off" blockGap=8
|
||||
//% weight=39
|
||||
@ -104,8 +104,8 @@ namespace neopixel {
|
||||
|
||||
/**
|
||||
* Create a new NeoPixel driver for `numleds` LEDs.
|
||||
* @params pin the pin where the neopixel is connected.
|
||||
* @params numleds number of leds in the strip, eg: 24,30,60,64
|
||||
* @param pin the pin where the neopixel is connected.
|
||||
* @param numleds number of leds in the strip, eg: 24,30,60,64
|
||||
*/
|
||||
//% blockId="neopixel_create" block="neopixel create|at pin %pin|with %numleds leds"
|
||||
//% weight=90
|
||||
|
Loading…
Reference in New Issue
Block a user