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.

52 lines
1.7 KiB

  1. /* Copyright 2021 Andrew Fahmy
  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. #ifdef RGB_MATRIX_ENABLE
  18. // # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  19. // # define RGB_MATRIX_KEYPRESSES
  20. # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_RAINDROPS
  21. # define DEBUG_MATRIX_SCAN_RATE
  22. # define RGB_MATRIX_LED_FLUSH_LIMIT 100
  23. // # define RGB_MATRIX_LED_PROCESS_LIMIT 2
  24. // i2c_master defines
  25. # define I2C_COUNT 2
  26. # define I2C1_BANK GPIOB
  27. # define I2C1_SCL 0 // A2 on pinout = B0
  28. # define I2C1_SDA 1 // A2 on pinout = B1
  29. # define I2C1_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2
  30. # define I2C1_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2
  31. # define USE_I2C2
  32. # define I2C2_BANK GPIOC
  33. # define I2C2_SCL 10 // A2 on pinout = C10
  34. # define I2C2_SDA 11 // A2 on pinout = C11
  35. # define I2C2_SCL_PAL_MODE PAL_MODE_ALTERNATIVE_2
  36. # define I2C2_SDA_PAL_MODE PAL_MODE_ALTERNATIVE_2
  37. # define DRIVER_ADDR_1 0b1010000
  38. # define DRIVER_ADDR_2 0b1010000
  39. # define DRIVER_COUNT 2
  40. # define DRIVER_1_LED_TOTAL 64
  41. # define DRIVER_2_LED_TOTAL 55
  42. # define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
  43. #endif