This commit is contained in:
houpengfei 2021-09-26 09:14:14 +08:00
parent d34d361a54
commit acd0f9d699
15 changed files with 32 additions and 18 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.vscode
out

View File

@ -28,7 +28,7 @@ lite_component("app") {
# "TW104_ADC_voltage:adc_voltage",
# "TW105_I2C_sht30:i2c_sht30",
# "TW106_UART:uart_test",
# "TW301_APP_oled:oled_demo",
# "TW302_APP_nfc:app_nfc_example"
# "TW201_APP_oled:oled_demo",
# "TW202_APP_nfc:app_nfc_example"
]
}

View File

@ -26,4 +26,4 @@ void HelloWorld(void)
return;
}
SYS_RUN(HelloWorld);
APP_FEATURE_INIT(HelloWorld);

View File

@ -82,4 +82,5 @@ void os_mutex_example(void)
printf("create Mutex failed!\n");
}
}
APP_FEATURE_INIT(os_mutex_example);

View File

@ -63,4 +63,4 @@ static void IotGpioTurnOnLedLight(void)
return;
}
SYS_RUN(IotGpioTurnOnLedLight);
APP_FEATURE_INIT(IotGpioTurnOnLedLight);

View File

@ -93,4 +93,4 @@ static void IotGpioClickKey(void)
return;
}
SYS_RUN(IotGpioClickKey);
APP_FEATURE_INIT(IotGpioClickKey);

View File

@ -87,4 +87,4 @@ static void IotGpioBreathingLedLamp(void)
return;
}
SYS_RUN(IotGpioBreathingLedLamp);
APP_FEATURE_INIT(IotGpioBreathingLedLamp);

View File

@ -68,4 +68,4 @@ static void adcVoltageEntry(void)
return;
}
SYS_RUN(adcVoltageEntry);
APP_FEATURE_INIT(adcVoltageEntry);

View File

@ -49,4 +49,4 @@ static void i2cSht30Entry(void)
return;
}
SYS_RUN(i2cSht30Entry);
APP_FEATURE_INIT(i2cSht30Entry);

View File

@ -85,4 +85,4 @@ static void uartEntry(void)
return;
}
SYS_RUN(uartEntry);
APP_FEATURE_INIT(uartEntry);

View File

@ -1,4 +1,4 @@
# OpenHarmony驱动子系统开发—IIC_Oled显示
# OpenHarmony驱动子系统开发-----IIC_OLED显示
## 概述
I2C(Inter Integrated Circuit)总线是由Philips公司开发的一种简单、双向二线制同步串行总线。

View File

@ -375,5 +375,5 @@ void my_oled_demo(void)
//}
}
SYS_RUN(my_oled_demo);
APP_FEATURE_INIT(my_oled_demo);

View File

@ -1,11 +1,21 @@
/*
* Copyright (c) 2021 Talkweb Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __OLEDFONT_H
#define __OLEDFONT_H
//锟斤拷锟斤拷ASCII锟斤拷
//偏锟斤拷锟斤拷32
//ASCII锟街凤拷锟斤拷
//偏锟斤拷锟斤拷32
//锟斤拷小:12*6
/************************************6*8锟侥碉拷锟斤拷************************************/
/************************************6*8 ASCII************************************/
const unsigned char asc2_1206[95][12]={
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
{0x00,0x00,0x00,0x00,0x3F,0x40,0x00,0x00,0x00,0x00,0x00,0x00},/*"!",1*/
@ -104,7 +114,7 @@ const unsigned char asc2_1206[95][12]={
{0x40,0x00,0x80,0x00,0x40,0x00,0x20,0x00,0x20,0x00,0x40,0x00},/*"~",94*/
};
//16*16 ASCII瀛楃闆嗙偣闃<EFBFBD>
//16*16 ASCII
const unsigned char asc2_1608[95][16]={
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
{0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xCC,0x00,0x0C,0x00,0x00,0x00,0x00,0x00,0x00},/*"!",1*/