@@ -340,6 +340,89 @@ const blocks: BlockDefinition = [
340340 "BKY_LEAPHY_DISPLAY_LARGE" ,
341341 6 ,
342342 ) ,
343+ {
344+ type : "leaphy_lcd_clear" ,
345+ message0 : "%{BKY_LEAPHY_LCD_CLEAR}" ,
346+ previousStatement : null ,
347+ nextStatement : null ,
348+ style : "leaphy_blocks" ,
349+ helpUrl : "" ,
350+
351+ aiHelp : "Clear the I2C LCD display" ,
352+ relevanceKey : "LEAPHY_LCD_DISPLAY" ,
353+ } ,
354+ {
355+ type : "leaphy_lcd_print_line" ,
356+ message0 : "%{BKY_LEAPHY_LCD_PRINT} %1 %2 %3" ,
357+ args0 : [
358+ { type : "input_dummy" } ,
359+ {
360+ type : "field_dropdown" ,
361+ name : "DISPLAY_ROW" ,
362+ options : [
363+ [ "1" , "0" ] ,
364+ [ "2" , "1" ] ,
365+ ] ,
366+ } ,
367+ { type : "input_value" , name : "VALUE" } ,
368+ ] ,
369+ inputsInline : true ,
370+ previousStatement : null ,
371+ nextStatement : null ,
372+ style : "leaphy_blocks" ,
373+ helpUrl : "" ,
374+
375+ aiHelp : "Print the value to the I2C LCD display on a selected row" ,
376+ relevanceKey : "LEAPHY_LCD_DISPLAY" ,
377+ } ,
378+ {
379+ type : "leaphy_lcd_print_value" ,
380+ message0 : "%{BKY_LEAPHY_LCD_PRINT} %1 %2 %3 = %4 %5" ,
381+ args0 : [
382+ { type : "input_dummy" } ,
383+ {
384+ type : "field_dropdown" ,
385+ name : "DISPLAY_ROW" ,
386+ options : [
387+ [ "1" , "0" ] ,
388+ [ "2" , "1" ] ,
389+ ] ,
390+ } ,
391+ { type : "input_value" , name : "NAME" } ,
392+ { type : "input_dummy" } ,
393+ { type : "input_value" , name : "VALUE" } ,
394+ ] ,
395+ inputsInline : true ,
396+ previousStatement : null ,
397+ nextStatement : null ,
398+ style : "leaphy_blocks" ,
399+ helpUrl : "" ,
400+
401+ aiHelp :
402+ "Print the value with name to the I2C LCD display on a selected row" ,
403+ relevanceKey : "LEAPHY_LCD_DISPLAY" ,
404+ } ,
405+ {
406+ type : "leaphy_lcd_set_backlight" ,
407+ message0 : "%{BKY_LEAPHY_LCD_SET_BACKLIGHT} %1" ,
408+ args0 : [
409+ {
410+ type : "field_dropdown" ,
411+ name : "BACKLIGHT" ,
412+ options : [
413+ [ "%{BKY_LEAPHY_LCD_BACKLIGHT_ON}" , "ON" ] ,
414+ [ "%{BKY_LEAPHY_LCD_BACKLIGHT_OFF}" , "OFF" ] ,
415+ ] ,
416+ } ,
417+ ] ,
418+ previousStatement : null ,
419+ nextStatement : null ,
420+ style : "leaphy_blocks" ,
421+ helpUrl : "" ,
422+
423+ aiHelp : "Turn the backlight of the I2C LCD display on or off" ,
424+ relevanceKey : "LEAPHY_LCD_DISPLAY" ,
425+ } ,
343426 {
344427 type : "leaphy_gas_sensor" ,
345428 message0 : "%%{BKY_LEAPHY_CHOOSE_GAS} %1" ,
0 commit comments