1
0
Fork 0

Keyboard: Lily58 update serial.c and add OLED (#4715)

* update serial.c and add OLED

* update readme

* keymap fix

* keymap fix2
This commit is contained in:
Naoki Katahira 2019-01-06 02:30:48 +09:00 committed by Drashna Jaelre
parent 5b5f452bf9
commit ea47be936b
36 changed files with 1972 additions and 215 deletions

7
keyboards/lily58/i2c.h Normal file → Executable file
View file

@ -1,5 +1,4 @@
#ifndef I2C_H
#define I2C_H
#pragma once
#include <stdint.h>
@ -15,7 +14,7 @@
#define SLAVE_BUFFER_SIZE 0x10
// i2c SCL clock frequency
// i2c SCL clock frequency 400kHz
#define SCL_CLOCK 400000L
extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE];
@ -45,5 +44,3 @@ extern unsigned char i2c_readNak(void);
extern unsigned char i2c_read(unsigned char ack);
#define i2c_read(ack) (ack) ? i2c_readAck() : i2c_readNak();
#endif