aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keyboardio/model01/leds.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keyboardio/model01/leds.c')
-rw-r--r--keyboards/keyboardio/model01/leds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboards/keyboardio/model01/leds.c b/keyboards/keyboardio/model01/leds.c
index 3fb502cb27..c9a037906a 100644
--- a/keyboards/keyboardio/model01/leds.c
+++ b/keyboards/keyboardio/model01/leds.c
@@ -13,7 +13,8 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "quantum.h"
+
+#include "leds.h"
#include "i2c_master.h"
#include "led_tables.h"
#include "rgb_matrix.h"
@@ -64,12 +65,11 @@ static void set_color_all(uint8_t r, uint8_t g, uint8_t b) {
static void init(void) {
// Enable high current pathway to LEDs - this does violate the USB spec though! (1.6 amps...)
- DDRE |= _BV(6);
- PORTE &= ~_BV(6);
+ gpio_set_pin_output(E6);
+ gpio_write_pin_low(E6);
// Overcurrent check input
- DDRB &= ~_BV(4);
- PORTB &= ~_BV(4);
+ gpio_set_pin_input(B4);
}
static void flush(void) {