# lv_nv3007.h (/api/drivers/display/nv3007/lv_nv3007_h)



This driver is just a wrapper around the generic MIPI compatible LCD controller driver

<ApiSummary functions="5" typedefs="2" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (3)&#x22;,&#x22;Other (2)&#x22;]">
  <ApiTab value="Setters (3)">
    <ApiMember kind="function" name="lv_nv3007_set_gap" file="drivers/display/nv3007/lv_nv3007.h" line="56" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/display/nv3007/lv_nv3007.h#L56">
      lv_nv3007_set_gap [#lv_nv3007_set_gap]

      Set gap, i.e., the offset of the (0,0) pixel in the VRAM

      ```c title=" " lineNumbers=1
      void lv_nv3007_set_gap(lv_display_t *disp, uint16_t x, uint16_t y)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                                                     | Description    |
      | ------ | -------------------------------------------------------- | -------------- |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | display object |
      | `x`    | <ApiLink name="uint16_t" />                              | x offset       |
      | `y`    | <ApiLink name="uint16_t" />                              | y offset       |
    </ApiMember>

    <ApiMember kind="function" name="lv_nv3007_set_invert" file="drivers/display/nv3007/lv_nv3007.h" line="63" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/display/nv3007/lv_nv3007.h#L63">
      lv_nv3007_set_invert [#lv_nv3007_set_invert]

      Set color inversion

      ```c title=" " lineNumbers=1
      void lv_nv3007_set_invert(lv_display_t *disp, bool invert)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name     | Type                                                     | Description                 |
      | -------- | -------------------------------------------------------- | --------------------------- |
      | `disp`   | <ApiLink name="lv_display_t" display="lv_display_t *" /> | display object              |
      | `invert` | <ApiLink name="bool" />                                  | false: normal, true: invert |
    </ApiMember>

    <ApiMember kind="function" name="lv_nv3007_set_gamma_curve" file="drivers/display/nv3007/lv_nv3007.h" line="70" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/display/nv3007/lv_nv3007.h#L70">
      lv_nv3007_set_gamma_curve [#lv_nv3007_set_gamma_curve]

      Set gamma curve

      ```c title=" " lineNumbers=1
      void lv_nv3007_set_gamma_curve(lv_display_t *disp, uint8_t gamma)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                     | Description    |
      | ------- | -------------------------------------------------------- | -------------- |
      | `disp`  | <ApiLink name="lv_display_t" display="lv_display_t *" /> | display object |
      | `gamma` | <ApiLink name="uint8_t" />                               | gamma curve    |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (2)">
    <ApiMember kind="function" name="lv_nv3007_create" file="drivers/display/nv3007/lv_nv3007.h" line="47" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/display/nv3007/lv_nv3007.h#L47">
      lv_nv3007_create [#lv_nv3007_create]

      Create an LCD display with NV3007 driver

      ```c title=" " lineNumbers=1
      lv_display_t * lv_nv3007_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags, lv_nv3007_send_cmd_cb_t send_cmd_cb, lv_nv3007_send_color_cb_t send_color_cb)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name            | Type                                         | Description                                                 |
      | --------------- | -------------------------------------------- | ----------------------------------------------------------- |
      | `hor_res`       | <ApiLink name="uint32_t" />                  | horizontal resolution                                       |
      | `ver_res`       | <ApiLink name="uint32_t" />                  | vertical resolution                                         |
      | `flags`         | <ApiLink name="lv_lcd_flag_t" />             | default configuration settings (mirror, RGB ordering, etc.) |
      | `send_cmd_cb`   | <ApiLink name="lv_nv3007_send_cmd_cb_t" />   |                                                             |
      | `send_color_cb` | <ApiLink name="lv_nv3007_send_color_cb_t" /> |                                                             |

      **Returns:** <ApiLink name="lv_display_t" display="lv_display_t *" /> — pointer to the created display
    </ApiMember>

    <ApiMember kind="function" name="lv_nv3007_send_cmd_list" file="drivers/display/nv3007/lv_nv3007.h" line="77" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/display/nv3007/lv_nv3007.h#L77">
      lv_nv3007_send_cmd_list [#lv_nv3007_send_cmd_list]

      Send list of commands.

      ```c title=" " lineNumbers=1
      void lv_nv3007_send_cmd_list(lv_display_t *disp, const uint8_t *cmd_list)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name       | Type                                                     | Description                            |
      | ---------- | -------------------------------------------------------- | -------------------------------------- |
      | `disp`     | <ApiLink name="lv_display_t" display="lv_display_t *" /> | display object                         |
      | `cmd_list` | <ApiLink name="uint8_t" display="const uint8_t *" />     | controller and panel-specific commands |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Typedefs [#typedefs]

<ApiMember kind="typedef" name="lv_nv3007_send_cmd_cb_t" file="drivers/display/nv3007/lv_nv3007.h" line="31" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/display/nv3007/lv_nv3007.h#L31">
  lv_nv3007_send_cmd_cb_t [#lv_nv3007_send_cmd_cb_t]

  ```c title=" " lineNumbers=1
  typedef lv_lcd_send_cmd_cb_t lv_nv3007_send_cmd_cb_t
  ```
</ApiMember>

<TypeUsedBy name="lv_nv3007_send_cmd_cb_t" count="1">
  * `lv_nv3007_create` — param `send_cmd_cb`
</TypeUsedBy>

<ApiMember kind="typedef" name="lv_nv3007_send_color_cb_t" file="drivers/display/nv3007/lv_nv3007.h" line="32" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/display/nv3007/lv_nv3007.h#L32">
  lv_nv3007_send_color_cb_t [#lv_nv3007_send_color_cb_t]

  ```c title=" " lineNumbers=1
  typedef lv_lcd_send_color_cb_t lv_nv3007_send_color_cb_t
  ```
</ApiMember>

<TypeUsedBy name="lv_nv3007_send_color_cb_t" count="1">
  * `lv_nv3007_create` — param `send_color_cb`
</TypeUsedBy>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_lcd_generic_mipi.h&#x22;]" includedBy="[&#x22;lv_drivers.h&#x22;]" transitiveIncludes="[&#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
