diff options
Diffstat (limited to 'keyboards/evyd13/minitomic/minitomic.c')
| -rw-r--r-- | keyboards/evyd13/minitomic/minitomic.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/keyboards/evyd13/minitomic/minitomic.c b/keyboards/evyd13/minitomic/minitomic.c index 8d5f11a50..15f282964 100644 --- a/keyboards/evyd13/minitomic/minitomic.c +++ b/keyboards/evyd13/minitomic/minitomic.c | |||
| @@ -14,37 +14,3 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "minitomic.h" | 16 | #include "minitomic.h" |
| 17 | |||
| 18 | void matrix_init_kb(void) { | ||
| 19 | // put your keyboard start-up code here | ||
| 20 | // runs once when the firmware starts up | ||
| 21 | |||
| 22 | matrix_init_user(); | ||
| 23 | led_init_ports(); | ||
| 24 | } | ||
| 25 | |||
| 26 | void matrix_scan_kb(void) { | ||
| 27 | // put your looping keyboard code here | ||
| 28 | // runs every cycle (a lot) | ||
| 29 | |||
| 30 | matrix_scan_user(); | ||
| 31 | } | ||
| 32 | |||
| 33 | void led_init_ports(void) { | ||
| 34 | //Set led pin as output, then high (off) | ||
| 35 | writePinHigh(C7); | ||
| 36 | } | ||
| 37 | |||
| 38 | bool led_update_kb(led_t led_state) { | ||
| 39 | bool res = led_update_user(led_state); | ||
| 40 | if(res) { | ||
| 41 | // writePin sets the pin high for 1 and low for 0. | ||
| 42 | // In this example the pins are inverted, setting | ||
| 43 | // it low/0 turns it on, and high/1 turns the LED off. | ||
| 44 | // This behavior depends on whether the LED is between the pin | ||
| 45 | // and VCC or the pin and GND. | ||
| 46 | writePin(C7, !led_state.caps_lock); | ||
| 47 | } | ||
| 48 | return res; | ||
| 49 | } | ||
| 50 | |||
