Skip to content

Commit

Permalink
added min/max
Browse files Browse the repository at this point in the history
  • Loading branch information
MKleinSB committed Dec 11, 2020
1 parent 34806ec commit 31f37fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions callicolor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ namespace CalliColor {
* Legt die Helligkeit für den gesamten Neopixelring fest
*/
//% blockId=CalliBrightness block="setze Helligkeit auf %c"
//% c.defl=256
export function CalliHelligkeit(c: number){
//% c.defl=128
//% c.min=0 c.max=256
export function CalliBrightness(c: number){
Callistrip.setBrightness(c)
Callistrip.show()
}
Expand Down
2 changes: 1 addition & 1 deletion pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"supportedTargets": [
"calliopemini"
],
"preferredEditor": "blocksprj"
"preferredEditor": "tsprj"
}

0 comments on commit 31f37fe

Please sign in to comment.