LCD

LCDコントローラ

TFT・OLED

ILI9341

S1D13700

SSD13xx

ST7735

ST7789

GLCD

UC1701

ST7565

ST7567

ST7920

Linux

fbtft

fbtft_device

  • fbtft_device のパラメタ
    # modinfo fbtft_device
        :
    parm:           name:Devicename (required). name=list => list all supported devices. (charp)
    parm:           rotate:Angle to rotate display counter clockwise: 0, 90, 180, 270 (uint)
    parm:           busnum:SPI bus number (default=0) (uint)
    parm:           cs:SPI chip select (default=0) (uint)
    parm:           speed:SPI speed (override device default) (uint)
    parm:           mode:SPI mode (override device default) (int)
    parm:           gpios:List of gpios. Comma separated with the form: reset:23,dc:24 (when overriding the default, all gpios must be specified) (charp)
    parm:           fps:Frames per second (override driver default) (uint)
    parm:           gamma:String representation of Gamma Curve(s). Driver specific. (charp)
    parm:           txbuflen:txbuflen (override driver default) (int)
    parm:           bgr:BGR bit (supported by some drivers). (int)
    parm:           startbyte:Sets the Start byte used by some SPI displays. (uint)
    parm:           custom:Add a custom display device. Use speed= argument to make it a SPI device, else platform_device (bool)
    parm:           width:Display width, used with the custom argument (uint)
    parm:           height:Display height, used with the custom argument (uint)
    parm:           buswidth:Display bus width, used with the custom argument (uint)
    parm:           init:Init sequence, used with the custom argument (array of int)
    parm:           debug:level: 0-7 (the remaining 29 bits is for advanced usage) (ulong)
    parm:           verbose:0 silent, >0 show gpios, >1 show devices, >2 show devices before (default=3) (uint)
  • 登録済みデバイス
    # modprobe fbtft_device name=list
    [  209.147292] fbtft_device:  SPI devices registered:
    [  209.152122] fbtft_device:      spidev spi3.0 5000kHz 8 bits mode=0x00
    [  209.158659] fbtft_device:  'fb' Platform devices registered:
    [  209.164418] fbtft_device:  Supported displays:
    [  209.168902] fbtft_device:      adafruit18
    [  209.172920] fbtft_device:      adafruit18_green
    [  209.177478] fbtft_device:      adafruit22
    [  209.181493] fbtft_device:      adafruit22a
    [  209.185591] fbtft_device:      adafruit28
    [  209.189626] fbtft_device:      adafruit13m
    [  209.193725] fbtft_device:      agm1264k-fl
    [  209.197864] fbtft_device:      dogs102
    [  209.201619] fbtft_device:      er_tftm050_2
    [  209.205804] fbtft_device:      er_tftm070_5
    [  209.210017] fbtft_device:      flexfb
    [  209.213683] fbtft_device:      flexpfb
    [  209.217462] fbtft_device:      freetronicsoled128
    [  209.222168] fbtft_device:      hx8353d
    [  209.225921] fbtft_device:      hy28a
    [  209.229520] fbtft_device:      hy28b
    [  209.233099] fbtft_device:      ili9481
    [  209.236868] fbtft_device:      itdb24
    [  209.240533] fbtft_device:      itdb28
    [  209.244198] fbtft_device:      itdb28_spi
    [  209.248228] fbtft_device:      mi0283qt-2
    [  209.252240] fbtft_device:      mi0283qt-9a
    [  209.256340] fbtft_device:      mi0283qt-v2
    [  209.260460] fbtft_device:      nokia3310
    [  209.264385] fbtft_device:      nokia3310a
    [  209.268420] fbtft_device:      piscreen
    [  209.272259] fbtft_device:      pitft
    [  209.275837] fbtft_device:      pioled
    [  209.279521] fbtft_device:      rpi-display
    [  209.283621] fbtft_device:      s6d02a1
    [  209.287390] fbtft_device:      sainsmart18
    [  209.291489] fbtft_device:      sainsmart32
    [  209.295589] fbtft_device:      sainsmart32_fast
    [  209.300143] fbtft_device:      sainsmart32_latched
    [  209.304938] fbtft_device:      sainsmart32_spi
    [  209.309401] fbtft_device:      spidev
    [  209.313066] fbtft_device:      ssd1331
    [  209.316837] fbtft_device:      tinylcd35
    [  209.320762] fbtft_device:      tm022hdh26
    [  209.324773] fbtft_device:      tontec35_9481
    [  209.329064] fbtft_device:      tontec35_9486
    [  209.333337] fbtft_device:      upd161704
    [  209.337279] fbtft_device:      waveshare32b
    [  209.341467] fbtft_device:      waveshare22

flexfb

# modinfo flexfb
    :
parm:           chip:LCD controller (charp)
parm:           width:Display width (uint)
parm:           height:Display height (uint)
parm:           init:Init sequence (array of int)
parm:           setaddrwin:Which set_addr_win() implementation to use (uint)
parm:           buswidth:Width of databus (default: 8) (uint)
parm:           regwidth:Width of controller register (default: 8) (uint)
parm:           nobacklight:Turn off backlight functionality. (bool)
parm:           latched:Use with latched 16-bit databus (bool)

実行例

  • 横長画面 90度回転 96MHz駆動で 2倍速
    $ sudo modprobe fbtft_device name=adafruit28 rotate=90 speed=96000000

トラブルシューティング

  • display not supported
  • fbtft_device がGPIOの設定をする処理中でエラーが発生している
  • 別のところでGPIOを設定している場合は削除(コメントアウト)する

fbterm

jfbterm

con2fbmap

手動登録

  • /dev/fb0 が存在していない場合,フレームバッファにアクセスできるようにノードを作成
    # mknod -m 666 /dev/fb0 u 29 0
    • メジャー番号は 29、マイナー番号は 0 からとなっている

Arduino

u8glib

AVR


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2021-02-26 (金) 13:37:34 (1155d)