[X9D] Backlight support on simu

This commit is contained in:
bsongis
2012-12-28 08:20:22 +00:00
parent 7eae709938
commit 3d92371570
10 changed files with 27 additions and 62 deletions
+3 -6
View File
@@ -10,10 +10,7 @@
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "i2c_ee.h"
#include "hal.h"
#include "Macro_define.h"
#include "../open9x.h"
uint16_t EEPROM_ADDRESS;
@@ -136,11 +133,11 @@ void I2C_SEND_DATA(char SendByte)
while (i--) {
SCL_L;
I2C_delay();
if (SendByte&0x80)
if (SendByte & 0x80)
SDA_H;
else
SDA_L;
SendByte<<=1;
SendByte <<= 1;
I2C_delay();
SCL_H;
I2C_delay();