c7b5b3c419
In order to bring consistency in-tree, migrate all samples to the use the new prefix <zephyr/...>. Note that the conversion has been scripted: ```python from pathlib import Path import re EXTENSIONS = ("c", "h", "cpp", "rst") for p in Path(".").glob("samples/**/*"): if not p.is_file() or p.suffix and p.suffix[1:] not in EXTENSIONS: continue content = "" with open(p) as f: for line in f: m = re.match(r"^(.*)#include <(.*)>(.*)$", line) if (m and not m.group(2).startswith("zephyr/") and (Path(".") / "include" / "zephyr" / m.group(2)).exists()): content += ( m.group(1) + "#include <zephyr/" + m.group(2) +">" + m.group(3) + "\n" ) else: content += line with open(p, "w") as f: f.write(content) ``` Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no> |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt | ||
prj.conf | ||
prj_mec15xxevb_assy6853.conf | ||
README.rst | ||
sample.yaml |
.. _kscan-sample: KSCAN Interface #################################### Overview ******** This sample demonstrates how to use the :ref:`KSCAN API <kscan_api>`. Callbacks are registered that will write to the console indicating KSCAN events. These events indicate key presses and releases. Building and Running ******************** The sample can be built and executed on boards supporting a Keyboard Matrix. It requires a correct fixture setup. Please connect a Keyboard Matrix to exercise the functionality (you need to obtain the right keymap from the vendor because they vary across different manufactures). For the correct execution of that sample in twister, add into boards's map-file next fixture settings:: - fixture: fixture_connect_keyboard Sample output ============= .. code-block:: console KSCAN test with a Keyboard matrix Note: You are expected to see several callbacks as you press and release keys!