Skip to content

Commit

Permalink
add num pixels block
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 17, 2022
1 parent 3843d45 commit aacbe7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions led/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ namespace modules {
//% callInDebugger
//% group="Light"
//% weight=95
//% blockId=jacdac_led_num_pixels
//% block="%led number of pixels"
numPixels(): number {
this.start()
const values = this._numPixels.pauseUntilValues() as any[]
Expand Down

0 comments on commit aacbe7d

Please sign in to comment.