Skip to content

Commit

Permalink
更新 maqueenPlusV2.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
LinDong88 committed Dec 9, 2024
1 parent 994b21a commit f881f63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maqueenPlusV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,13 @@ namespace maqueenPlusV2 {

/**
* The LED positions where you wish to begin and end
* @param from , eg: 1
* @param to , eg: 4
* @param from , eg: 0
* @param to , eg: 3
*/

//% weight=60
//% from.min=0 from.max=3
//% to.min=1 to.max=4
//% to.min=0 to.max=3
//% block="range from |%from with|%to leds"
export function ledRange(from: number, to: number): number {
return ((from) << 16) + (2 << 8) + (to);
Expand Down

0 comments on commit f881f63

Please sign in to comment.