Rename the toplevel include directory to shared. Add it to the project workspace. Include led_driver.h from main.c

This commit is contained in:
László Monda
2016-09-26 20:36:49 +02:00
parent 2dd9aa87b0
commit 36bb5fabba
5 changed files with 8 additions and 2 deletions

3
shared/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Include files
These files are shared between multiple projects of this repository.

10
shared/i2c_addresses.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef __I2C_H__
#define __I2C_H__
#define LEFT_KEYBOARD_HALF_I2C_ADDRESS_7BIT 8
// The 7-bit I2C addresses of the IS31FL3731 LED driver range from 0x74 to 0x77
#define LEFT_LED_DRIVER_ADDRESS_7BIT 0b1110100
#define RIGHT_LED_DRIVER_ADDRESS_7BIT 0b1110111
#endif