mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add OLED c lib
This commit is contained in:
parent
9ea7b43850
commit
23ce6a1498
9
package/PikaPiZero/.vscode/settings.json
vendored
Normal file
9
package/PikaPiZero/.vscode/settings.json
vendored
Normal 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"
|
||||
}
|
18
package/PikaPiZero/PikaPiZero_OLED.c
Normal file
18
package/PikaPiZero/PikaPiZero_OLED.c
Normal 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
9
package/STM32/.vscode/settings.json
vendored
Normal 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"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user