Skip to content

Commit

Permalink
[Bug fix] Fix GPIO port of RGB light
Browse files Browse the repository at this point in the history
  • Loading branch information
gachiham committed Feb 25, 2019
1 parent 96c8c18 commit 2b6cea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keyboards/blockey_ble/board/custom_board.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Copyright (c) 2014 - 2017, Nordic Semiconductor ASA
* Copyright (c) 2018, Sekigon
* Copyright (c) 2019, Gachiham
*
* All rights reserved.
*
Expand Down Expand Up @@ -47,7 +48,7 @@ extern "C" {

//#include "nrf_gpio.h"

#define GPIO(port, pin) ((port << 6) | pin)
#define GPIO(port, pin) ((port << 5) | pin)
#define PIN1 GPIO(0,8)
#define PIN2 GPIO(0,11)
#define PIN5 GPIO(0,18)
Expand Down

0 comments on commit 2b6cea3

Please sign in to comment.