mun.c 902 B

12345678910111213141516171819202122232425
  1. /*
  2. * ----------------------------------------------------------------------------
  3. * "THE BEER-WARE LICENSE" (Revision 42):
  4. * <https://github.com/Legonut> wrote this file. As long as you retain this
  5. * notice you can do whatever you want with this stuff. If we meet some day, and
  6. * you think this stuff is worth it, you can buy me a beer in return. David Rauseo
  7. * ----------------------------------------------------------------------------
  8. */
  9. #include "mun.h"
  10. #include "touch_encoder.h"
  11. #include "common_oled.h"
  12. #include <transactions.h>
  13. void keyboard_post_init_kb(void) {
  14. touch_encoder_init();
  15. transaction_register_rpc(TOUCH_ENCODER_SYNC, touch_encoder_slave_sync);
  16. transaction_register_rpc(RGB_MENU_SYNC, rgb_menu_slave_sync);
  17. keyboard_post_init_user();
  18. }
  19. void housekeeping_task_kb(void) {
  20. touch_encoder_update(TOUCH_ENCODER_SYNC);
  21. rgb_menu_update(RGB_MENU_SYNC);
  22. }