wireless.h (1451B)
1 /* 2 Copyright 2018 Mattia Dal Ben <matthewdibi@gmail.com> 3 4 This program is free software: you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation, either version 2 of the License, or 7 (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #pragma once 19 20 #include "quantum.h" 21 22 #define red_led_off gpio_write_pin_high(F5) 23 #define red_led_on gpio_write_pin_low(F5) 24 #define blu_led_off gpio_write_pin_high(F4) 25 #define blu_led_on gpio_write_pin_low(F4) 26 #define grn_led_off gpio_write_pin_high(D1) 27 #define grn_led_on gpio_write_pin_low(D1) 28 #define wht_led_off gpio_write_pin_high(D0) 29 #define wht_led_on gpio_write_pin_low(D0) 30 31 #define set_led_off red_led_off; grn_led_off; blu_led_off; wht_led_off 32 #define set_led_red red_led_on; grn_led_off; blu_led_off; wht_led_off 33 #define set_led_blue red_led_off; grn_led_off; blu_led_on; wht_led_off 34 #define set_led_green red_led_off; grn_led_on; blu_led_off; wht_led_off 35 #define set_led_white red_led_off; grn_led_off; blu_led_off; wht_led_on