2021-09-01 11:03:14 +02:00
|
|
|
#pragma once
|
2016-07-05 15:45:29 +02:00
|
|
|
|
|
|
|
#include "quantum.h"
|
|
|
|
|
2016-07-09 00:38:58 +02:00
|
|
|
void ergodox_board_led_on(void);
|
|
|
|
void ergodox_right_led_1_on(void);
|
|
|
|
void ergodox_right_led_2_on(void);
|
|
|
|
void ergodox_right_led_3_on(void);
|
2017-04-02 00:31:04 +02:00
|
|
|
|
|
|
|
inline void ergodox_right_led_on(uint8_t led) {
|
|
|
|
switch (led) {
|
|
|
|
case 0:
|
|
|
|
ergodox_right_led_1_on();
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
ergodox_right_led_2_on();
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
ergodox_right_led_3_on();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2016-07-09 00:38:58 +02:00
|
|
|
|
|
|
|
void ergodox_board_led_off(void);
|
|
|
|
void ergodox_right_led_1_off(void);
|
|
|
|
void ergodox_right_led_2_off(void);
|
|
|
|
void ergodox_right_led_3_off(void);
|
2017-04-02 00:31:04 +02:00
|
|
|
inline void ergodox_right_led_off(uint8_t led) {
|
|
|
|
switch (led) {
|
|
|
|
case 0:
|
|
|
|
ergodox_right_led_1_off();
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
ergodox_right_led_2_off();
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
ergodox_right_led_3_off();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2016-07-09 00:38:58 +02:00
|
|
|
|
|
|
|
inline void ergodox_led_all_on(void)
|
|
|
|
{
|
|
|
|
ergodox_board_led_on();
|
|
|
|
ergodox_right_led_1_on();
|
|
|
|
ergodox_right_led_2_on();
|
|
|
|
ergodox_right_led_3_on();
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void ergodox_led_all_off(void)
|
|
|
|
{
|
|
|
|
ergodox_board_led_off();
|
|
|
|
ergodox_right_led_1_off();
|
|
|
|
ergodox_right_led_2_off();
|
|
|
|
ergodox_right_led_3_off();
|
|
|
|
}
|
|
|
|
|
2017-04-02 00:31:04 +02:00
|
|
|
void ergodox_right_led_1_set(uint8_t n);
|
|
|
|
void ergodox_right_led_2_set(uint8_t n);
|
|
|
|
void ergodox_right_led_3_set(uint8_t n);
|
2016-07-09 00:38:58 +02:00
|
|
|
|
|
|
|
inline void ergodox_right_led_set(uint8_t led, uint8_t n){
|
2017-04-02 00:31:04 +02:00
|
|
|
switch (led) {
|
|
|
|
case 0:
|
|
|
|
ergodox_right_led_1_set(n);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
ergodox_right_led_2_set(n);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
ergodox_right_led_3_set(n);
|
|
|
|
break;
|
|
|
|
}
|
2016-07-09 00:38:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void ergodox_led_all_set(uint8_t n) {
|
|
|
|
ergodox_right_led_1_set(n);
|
|
|
|
ergodox_right_led_2_set(n);
|
|
|
|
ergodox_right_led_3_set(n);
|
|
|
|
}
|
|
|
|
|
2021-07-07 10:05:35 +02:00
|
|
|
void ergodox_infinity_lcd_color(uint16_t r, uint16_t g, uint16_t b);
|