Display LCD¶
Drawing, layout, color, and display helpers for LCD rendering.
Bitmap.getSize Return width, height of a bitmap object Bitmap.open Loads a bitmap in memory, for later use with lcd.drawBitmap(). Bitmap.resize Return a resized bitmap object Bitmap.toMask Return a 8bit bitmap mask that can be used with lcd.drawBitmapPattern() GREY Returns gray value which can be used in LCD functions lcd.RGB Returns a drawing flag with RGB color code lcd.clear Clear the LCD screen lcd.drawAnnulus Draw an arc lcd.drawArc Draw an arc lcd.drawBitmap Displays a bitmap at (x,y) lcd.drawBitmapPattern Displays a bitmap pattern at (x,y) lcd.drawBitmapPatternPie Displays a bitmap pattern pie at (x,y) lcd.drawChannel Display a telemetry value at (x,y) lcd.drawCircle Draw a circle at (x, y) of specified radius lcd.drawCombobox Draw a combo box lcd.drawFilledCircle Draw a filled circle at (x, y) of specified radius lcd.drawFilledRectangle Draw a solid rectangle from top left corner (x,y) of specified width and height lcd.drawFilledTriangle Draw a filled triangle lcd.drawGauge Draw a simple gauge that is filled based upon fill value lcd.drawHudRectangle Draw a rectangle in perspective lcd.drawLine Draw a straight line on LCD lcd.drawLineWithClipping Draw a line only inside a rectangle lcd.drawNumber Display a number at (x,y) lcd.drawPie Draw a pie slice lcd.drawPixmap Draw a bitmap at (x,y) lcd.drawPoint Draw a single pixel at (x,y) position lcd.drawRectangle Draw a rectangle from top left corner (x,y) of specified width and height lcd.drawScreenTitle Draw a title bar lcd.drawSource Displays the name of the corresponding input as defined by the source at (x,y) lcd.drawSwitch Draw a text representation of switch at (x,y) lcd.drawText Draw a text beginning at (x,y) lcd.drawTextLines Draw text inside rectangle (x,y,w,h) with line breaks lcd.drawTimer Display a value formatted as time at (x,y) lcd.drawTriangle Draw a triangle lcd.exitFullScreen Exit full screen widget mode. lcd.getColor Get the color value from flags lcd.getLastLeftPos Returns the leftmost x position from previous drawtext or drawNumber output lcd.getLastPos Returns the rightmost x position from previous output lcd.getLastRightPos Returns the rightest x position from previous drawtext or drawNumber output lcd.invertRect Invert a rectangle zone from top left corner (x,y) of specified width and height lcd.refresh Refresh the LCD screen lcd.resetBacklightTimeout Reset the backlight timeout lcd.setColor Change an indexed color (theme colors and CUSTOM_COLOR). lcd.sizeText Get the width and height of a text string drawn with flags popupConfirmation Raises a pop-up on screen that asks for confirmation popupInput Raises a pop-up on screen that allows uses input popupWarning Raises a pop-up on screen that shows a warning