aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keyboardio/model01/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keyboardio/model01/matrix.c')
-rw-r--r--keyboards/keyboardio/model01/matrix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/keyboardio/model01/matrix.c b/keyboards/keyboardio/model01/matrix.c
index 4b788d2812..72948fc0b7 100644
--- a/keyboards/keyboardio/model01/matrix.c
+++ b/keyboards/keyboardio/model01/matrix.c
@@ -13,7 +13,7 @@
* 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 "matrix.h"
#include "i2c_master.h"
#include <string.h>
#include "model01.h"
@@ -69,8 +69,8 @@ static int i2c_set_keyscan_interval(int hand, int delay) {
void matrix_init(void) {
/* Ensure scanner power is on - else right hand will not work */
- DDRC |= _BV(7);
- PORTC |= _BV(7);
+ gpio_set_pin_output(C7);
+ gpio_write_pin_high(C7);
i2c_init();
i2c_set_keyscan_interval(LEFT, 2);