potentiometer.h 467 B

123456789101112131415161718
  1. // Copyright 2023 QMK
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <stdbool.h>
  5. #include <stdint.h>
  6. /** \brief user hook called when sampled value has changed
  7. */
  8. bool potentiometer_update_user(uint8_t index, uint16_t value);
  9. /** \brief keyboard hook called when sampled value has changed
  10. */
  11. bool potentiometer_update_kb(uint8_t index, uint16_t value);
  12. /** \brief Handle various subsystem background tasks
  13. */
  14. bool potentiometer_task(void);