You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

3 years ago
  1. /* Copyright 2020 Imam Rafii
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. #define VENDOR_ID 0x4454
  19. #define PRODUCT_ID 0x5444
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER "IktaS"
  22. #define PRODUCT "Pill60"
  23. #define MATRIX_ROWS 5
  24. #define MATRIX_COLS 14
  25. #define DIODE_DIRECTION COL2ROW
  26. /* Set 0 if debouncing isn't needed */
  27. #define DEBOUNCE 1
  28. /* Backlighting include */
  29. #define BACKLIGHT_PIN B14
  30. #define BACKLIGHT_PWM_DRIVER PWMD5
  31. #define BACKLIGHT_PWM_CHANNEL 1
  32. #define BACKLIGHT_LEVELS 5
  33. #define BREATHING_PERIOD 6
  34. /* Encoder */
  35. #define ENCODERS_PAD_A \
  36. { B9 }
  37. #define ENCODERS_PAD_B \
  38. { B8 }
  39. #define ENCODER_RESOLUTION 2
  40. /* OLED */
  41. #define I2C_DRIVER I2CD1
  42. #define I2C1_SCL_BANK GPIOB
  43. #define I2C1_SDA_BANK GPIOB
  44. #define I2C1_SCL 6
  45. #define I2C1_SDA 7