OpenTX 2.2 Lua Reference Guide
search
Ctrlk
  • OpenTX 2.2 Lua Reference Guide
  • Introductionchevron-right
  • Part I - Script Type Overviewchevron-right
  • Part II - OpenTX Lua API Programming Guidechevron-right
  • Part III - OpenTX Lua API Referencechevron-right
    • Constantschevron-right
    • General Functionschevron-right
    • Model Functionschevron-right
    • Lcd Functionschevron-right
      • Lcd Functions Overview
      • lcd.RGB(r, g, b)
      • lcd.clear([color])
      • lcd.drawBitmap(bitmap, x, y [, scale])
      • lcd.drawChannel(x, y, source, flags)
      • lcd.drawCombobox(x, y, w, list, idx [, flags])
      • lcd.drawFilledRectangle(x, y, w, h [, flags])
      • lcd.drawGauge(x, y, w, h, fill, maxfill [, flags])
      • lcd.drawLine(x1, y1, x2, y2, pattern, flags)
      • lcd.drawNumber(x, y, value [, flags])
      • lcd.drawPixmap(x, y, name)
      • lcd.drawPoint(x, y)
      • lcd.drawRectangle(x, y, w, h [, flags [, t]])
      • lcd.drawScreenTitle(title, page, pages)
      • lcd.drawSource(x, y, source [, flags])
      • lcd.drawSwitch(x, y, switch, flags)
      • lcd.drawText(x, y, text [, flags])
      • lcd.drawTimer(x, y, value [, flags])
      • lcd.getLastLeftPos()
      • lcd.getLastPos()
      • lcd.getLastRightPos()
      • lcd.refresh()
      • lcd.setColor(area, color)
    • Bitmap Functionschevron-right
  • Part IV - Converting OpenTX 2.0 Scriptschevron-right
  • Part V - Converting OpenTX 2.1 Scripts
  • Part VI - Advanced Topicschevron-right
  • Part VII - Appendixchevron-right
gitbookPowered by GitBook
block-quoteOn this pagechevron-down
  1. Part III - OpenTX Lua API Reference

Lcd Functions

Lcd Functions Overviewchevron-rightlcd.RGB(r, g, b)chevron-rightlcd.clear([color])chevron-rightlcd.drawBitmap(bitmap, x, y [, scale])chevron-rightlcd.drawChannel(x, y, source, flags)chevron-rightlcd.drawCombobox(x, y, w, list, idx [, flags])chevron-rightlcd.drawFilledRectangle(x, y, w, h [, flags])chevron-rightlcd.drawGauge(x, y, w, h, fill, maxfill [, flags])chevron-rightlcd.drawLine(x1, y1, x2, y2, pattern, flags)chevron-rightlcd.drawNumber(x, y, value [, flags])chevron-rightlcd.drawPixmap(x, y, name)chevron-rightlcd.drawPoint(x, y)chevron-rightlcd.drawRectangle(x, y, w, h [, flags [, t]])chevron-rightlcd.drawScreenTitle(title, page, pages)chevron-rightlcd.drawSource(x, y, source [, flags])chevron-rightlcd.drawSwitch(x, y, switch, flags)chevron-rightlcd.drawText(x, y, text [, flags])chevron-rightlcd.drawTimer(x, y, value [, flags])chevron-rightlcd.getLastLeftPos()chevron-rightlcd.getLastPos()chevron-rightlcd.getLastRightPos()chevron-rightlcd.refresh()chevron-rightlcd.setColor(area, color)chevron-right
Previousmodel.setTimer(timer, value)chevron-leftNextLcd Functions Overviewchevron-right

Last updated 4 years ago

Was this helpful?

Was this helpful?