Skip to content

Commit 3700b2a

Browse files
committed
add max/min property for x/y
1 parent 55eec52 commit 3700b2a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

main.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ namespace I2C_LCD1602 {
7272
*/
7373
//% blockId="I2C_LCD1620_SHOW_NUMBER" block="show number %n|at x %x|y %y"
7474
//% weight=90 blockGap=8
75+
//% x.min=0 x.max=15
76+
//% y.min=0 y.max=1
7577
export function ShowNumber(n: number, x: number, y: number): void {
7678
let s = n.toString()
7779
ShowString(s, x, y)
@@ -85,6 +87,8 @@ namespace I2C_LCD1602 {
8587
*/
8688
//% blockId="I2C_LCD1620_SHOW_STRING" block="show string %s|at x %x|y %y"
8789
//% weight=90 blockGap=8
90+
//% x.min=0 x.max=15
91+
//% y.min=0 y.max=1
8892
export function ShowString(s: string, x: number, y: number): void {
8993
let a: number
9094

0 commit comments

Comments
 (0)