mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-02-27 01:56:43 +00:00
16 lines
147 KiB
JavaScript
16 lines
147 KiB
JavaScript
|
import { _ as _export_sfc, c as createElementBlock, o as openBlock, a8 as createStaticVNode } from "./chunks/framework.DyMmIvSC.js";
|
|||
|
const __pageData = JSON.parse('{"title":"Pointing Device","description":"","frontmatter":{},"headers":[],"relativePath":"features/pointing_device.md","filePath":"features/pointing_device.md"}');
|
|||
|
const _sfc_main = { name: "features/pointing_device.md" };
|
|||
|
const _hoisted_1 = /* @__PURE__ */ createStaticVNode('<h1 id="pointing-device" tabindex="-1">Pointing Device <a class="header-anchor" href="#pointing-device" aria-label="Permalink to "Pointing Device {#pointing-device}""></a></h1><p>Pointing Device is a generic name for a feature intended to be generic: moving the system pointer around. There are certainly other options for it - like mousekeys - but this aims to be easily modifiable and hardware driven. You can implement custom keys to control functionality, or you can gather information from other peripherals and insert it directly here - let QMK handle the processing for you.</p><p>To enable Pointing Device, add the following line in your rules.mk and specify one of the driver options below.</p><div class="language-make vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">make</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">POINTING_DEVICE_ENABLE = yes</span></span></code></pre></div><h2 id="sensor-drivers" tabindex="-1">Sensor Drivers <a class="header-anchor" href="#sensor-drivers" aria-label="Permalink to "Sensor Drivers""></a></h2><p>There are a number of sensors that are supported by default. Note that only one sensor can be enabled by <code>POINTING_DEVICE_DRIVER</code> at a time. If you need to enable more than one sensor, then you need to implement it manually, using the <code>custom</code> driver.</p><h3 id="adns-5050-sensor" tabindex="-1">ADNS 5050 Sensor <a class="header-anchor" href="#adns-5050-sensor" aria-label="Permalink to "ADNS 5050 Sensor""></a></h3><p>To use the ADNS 5050 sensor, add this to your <code>rules.mk</code></p><div class="language-make vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">make</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">POINTING_DEVICE_DRIVER = adns5050</span></span></code></pre></div><p>The ADNS 5050 sensor uses a serial type protocol for communication, and requires an additional light source.</p><table><thead><tr><th>Setting (<code>config.h</code>)</th><th>Description</th><th>Default</th></tr></thead><tbody><tr><td><code>ADNS5050_SCLK_PIN</code></td><td>(Required) The pin connected to the clock pin of the sensor.</td><td><code>POINTING_DEVICE_SCLK_PIN</code></td></tr><tr><td><code>ADNS5050_SDIO_PIN</code></td><td>(Required) The pin connected to the data pin of the sensor.</td><td><code>POINTING_DEVICE_SDIO_PIN</code></td></tr><tr><td><code>ADNS5050_CS_PIN</code></td><td>(Required) The pin connected to the Chip Select pin of the sensor.</td><td><code>POINTING_DEVICE_CS_PIN</code></td></tr></tbody></table><p>The CPI range is 125-1375, in increments of 125. Defaults to 500 CPI.</p><h3 id="adns-9800-sensor" tabindex="-1">ADNS 9800 Sensor <a class="header-anchor" href="#adns-9800-sensor" aria-label="Permalink to "ADNS 9800 Sensor""></a></h3><p>To use the ADNS 9800 sensor, add this to your <code>rules.mk</code></p><div class="language-make vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">make</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">POINTING_DEVICE_DRIVER = adns9800</span></span></code></pre></div><p>The ADNS 9800 is an SPI driven optical sensor, that uses laser output for surface tracking.</p><table><thead><tr><th>Setting (<code>config.h</code>)</th><th>Description</th><th>Default</th></tr></thead><tbody><tr><td><code>ADNS9800_CLOCK_SPEED</code></td><td>(Optional) Sets the clock speed that the sensor runs at.</td><td><code>2000000</code></td></tr><tr><td><code>ADNS9800_SPI_LSBFIRST</code></td><td>(Optional) Sets the Least/Most Significant Byte First setting for SPI.</td><td><code>false</code></td></tr><tr><td><code>ADNS9800_SPI_MODE</code></td><td>(Opt
|
|||
|
const _hoisted_203 = [
|
|||
|
_hoisted_1
|
|||
|
];
|
|||
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|||
|
return openBlock(), createElementBlock("div", null, _hoisted_203);
|
|||
|
}
|
|||
|
const pointing_device = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|||
|
export {
|
|||
|
__pageData,
|
|||
|
pointing_device as default
|
|||
|
};
|