mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
As of today <zephyr/zephyr.h> is 100% equivalent to <zephyr/kernel.h>. This patch proposes to then include <zephyr/kernel.h> instead of <zephyr/zephyr.h> since it is more clear that you are including the Kernel APIs and (probably) nothing else. <zephyr/zephyr.h> sounds like a catch-all header that may be confusing. Most applications need to include a bunch of other things to compile, e.g. driver headers or subsystem headers like BT, logging, etc. The idea of a catch-all header in Zephyr is probably not feasible anyway. Reason is that Zephyr is not a library, like it could be for example `libpython`. Zephyr provides many utilities nowadays: a kernel, drivers, subsystems, etc and things will likely grow. A catch-all header would be massive, difficult to keep up-to-date. It is also likely that an application will only build a small subset. Note that subsystem-level headers may use a catch-all approach to make things easier, though. NOTE: This patch is **NOT** removing the header, just removing its usage in-tree. I'd advocate for its deprecation (add a #warning on it), but I understand many people will have concerns. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
.. _display-sample: Display Sample ############## Overview ******** This sample will draw some basic rectangles onto the display. The rectangle colors and positions are chosen so that you can check the orientation of the LCD and correct RGB bit order. The rectangles are drawn in clockwise order, from top left corner: red, green, blue, grey. The shade of grey changes from black through to white. If the grey looks too green or red at any point or the order of the corners is not as described above then the LCD may be endian swapped. Building and Running ******************** As this is a generic sample it should work with any display supported by Zephyr. Below is an example on how to build for a :ref:`nrf52840dk_nrf52840` board with a :ref:`adafruit_2_8_tft_touch_v2`. .. zephyr-app-commands:: :zephyr-app: samples/drivers/display :board: nrf52840dk_nrf52840 :goals: build :shield: adafruit_2_8_tft_touch_v2 :compact: For testing purpose without the need of any hardware, the :ref:`native_posix` board is also supported and can be built as follows; .. zephyr-app-commands:: :zephyr-app: samples/drivers/display :board: native_posix :goals: build :compact: List of Arduino-based display shields ************************************* - :ref:`adafruit_2_8_tft_touch_v2` - :ref:`ssd1306_128_shield` - :ref:`st7789v_generic` - :ref:`waveshare_e_paper_raw_panel_shield`