update
This commit is contained in:
parent
d34d361a54
commit
acd0f9d699
|
@ -0,0 +1,3 @@
|
|||
.vscode
|
||||
out
|
||||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -26,4 +26,4 @@ void HelloWorld(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SYS_RUN(HelloWorld);
|
||||
APP_FEATURE_INIT(HelloWorld);
|
||||
|
|
|
@ -82,4 +82,5 @@ void os_mutex_example(void)
|
|||
printf("create Mutex failed!\n");
|
||||
}
|
||||
}
|
||||
|
||||
APP_FEATURE_INIT(os_mutex_example);
|
||||
|
|
|
@ -63,4 +63,4 @@ static void IotGpioTurnOnLedLight(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SYS_RUN(IotGpioTurnOnLedLight);
|
||||
APP_FEATURE_INIT(IotGpioTurnOnLedLight);
|
||||
|
|
|
@ -93,4 +93,4 @@ static void IotGpioClickKey(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SYS_RUN(IotGpioClickKey);
|
||||
APP_FEATURE_INIT(IotGpioClickKey);
|
||||
|
|
|
@ -87,4 +87,4 @@ static void IotGpioBreathingLedLamp(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SYS_RUN(IotGpioBreathingLedLamp);
|
||||
APP_FEATURE_INIT(IotGpioBreathingLedLamp);
|
||||
|
|
|
@ -68,4 +68,4 @@ static void adcVoltageEntry(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SYS_RUN(adcVoltageEntry);
|
||||
APP_FEATURE_INIT(adcVoltageEntry);
|
||||
|
|
|
@ -49,4 +49,4 @@ static void i2cSht30Entry(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SYS_RUN(i2cSht30Entry);
|
||||
APP_FEATURE_INIT(i2cSht30Entry);
|
||||
|
|
|
@ -85,4 +85,4 @@ static void uartEntry(void)
|
|||
return;
|
||||
}
|
||||
|
||||
SYS_RUN(uartEntry);
|
||||
APP_FEATURE_INIT(uartEntry);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# OpenHarmony驱动子系统开发—IIC_Oled显示
|
||||
# OpenHarmony驱动子系统开发-----IIC_OLED显示
|
||||
|
||||
## 概述
|
||||
I2C(Inter Integrated Circuit)总线是由Philips公司开发的一种简单、双向二线制同步串行总线。
|
|
@ -375,5 +375,5 @@ void my_oled_demo(void)
|
|||
//}
|
||||
}
|
||||
|
||||
SYS_RUN(my_oled_demo);
|
||||
APP_FEATURE_INIT(my_oled_demo);
|
||||
|
|
@ -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*/
|
Loading…
Reference in New Issue