From 31f37fe936da7e07d00172f9e63020b0ffb00213 Mon Sep 17 00:00:00 2001 From: Michael Klein <37311672+MKleinSB@users.noreply.github.com> Date: Fri, 11 Dec 2020 18:08:04 +0100 Subject: [PATCH] added min/max --- callicolor.ts | 5 +++-- pxt.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/callicolor.ts b/callicolor.ts index 848a213..4b22e31 100644 --- a/callicolor.ts +++ b/callicolor.ts @@ -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() } diff --git a/pxt.json b/pxt.json index 89435d4..e656ec2 100644 --- a/pxt.json +++ b/pxt.json @@ -20,5 +20,5 @@ "supportedTargets": [ "calliopemini" ], - "preferredEditor": "blocksprj" + "preferredEditor": "tsprj" }