add OLED c lib

This commit is contained in:
李昂 2021-10-27 10:33:42 +08:00
parent 9ea7b43850
commit 23ce6a1498
3 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,9 @@
{
"RTT_Studio.Build.Parallel_Jobs": "12",
"RTT_Studio.Env_Location": "D:/RT-ThreadStudio/platform/env_released/env",
"RTT_Studio.Toolchain_Location": "D:/RT-ThreadStudio/repo/Extract/ToolChain_Support_Packages/ARM/GNU_Tools_for_ARM_Embedded_Processors/5.4.1/bin",
"RTT_Studio.Debuger.Bin_File": "D:/RT-ThreadStudio/repo/Extract/ToolChain_Support_Packages/ARM/GNU_Tools_for_ARM_Embedded_Processors/5.4.1/bin/arm-none-eabi-gdb.exe",
"RTT_Studio.Debuger.J-Link.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/SEGGER/J-Link/6.80d2",
"RTT_Studio.Debuger.ST-Link.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/STMicroelectronics/ST-LINK_Debugger/1.6.0",
"RTT_Studio.Debuger.QEMU.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/RealThread/QEMU/4.2.0.4"
}

View File

@ -0,0 +1,18 @@
#include "PikaPiZero_OLED.h"
#include "oled.h"
void PikaPiZero_OLED_drawPoint(PikaObj *self, int x, int y){
OLED_DrawPoint(x, y, 1);
OLED_Refresh();
}
void PikaPiZero_OLED_init(PikaObj *self){
OLED_Init();
OLED_ColorTurn(0);
OLED_DisplayTurn(0);
OLED_Clear();
}
void PikaPiZero_OLED_clear(PikaObj *self){
OLED_Clear();
}

9
package/STM32/.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"RTT_Studio.Build.Parallel_Jobs": "12",
"RTT_Studio.Env_Location": "D:/RT-ThreadStudio/platform/env_released/env",
"RTT_Studio.Toolchain_Location": "D:/RT-ThreadStudio/repo/Extract/ToolChain_Support_Packages/ARM/GNU_Tools_for_ARM_Embedded_Processors/5.4.1/bin",
"RTT_Studio.Debuger.Bin_File": "D:/RT-ThreadStudio/repo/Extract/ToolChain_Support_Packages/ARM/GNU_Tools_for_ARM_Embedded_Processors/5.4.1/bin/arm-none-eabi-gdb.exe",
"RTT_Studio.Debuger.J-Link.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/SEGGER/J-Link/6.80d2",
"RTT_Studio.Debuger.ST-Link.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/STMicroelectronics/ST-LINK_Debugger/1.6.0",
"RTT_Studio.Debuger.QEMU.Location": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/RealThread/QEMU/4.2.0.4"
}