From f1d90fdda0d28423da288bfbea10a285e381f94a Mon Sep 17 00:00:00 2001 From: lyon Date: Wed, 8 Sep 2021 10:47:30 +0800 Subject: [PATCH] add pikastddevice and tested ok --- src/package/pikascript/{PikaStdDeivce.py => PikaStdDevice.py} | 0 src/package/pikascript/main.py | 3 ++- .../{PikaStdDeivce_GPIO.c => PikaStdDevice_GPIO.c} | 2 +- .../pikascript-lib/PikaStdDevice/PikaStdDevice_Time.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) rename src/package/pikascript/{PikaStdDeivce.py => PikaStdDevice.py} (100%) rename src/package/pikascript/pikascript-lib/PikaStdDevice/{PikaStdDeivce_GPIO.c => PikaStdDevice_GPIO.c} (98%) diff --git a/src/package/pikascript/PikaStdDeivce.py b/src/package/pikascript/PikaStdDevice.py similarity index 100% rename from src/package/pikascript/PikaStdDeivce.py rename to src/package/pikascript/PikaStdDevice.py diff --git a/src/package/pikascript/main.py b/src/package/pikascript/main.py index db2e21a2e..2432909f6 100644 --- a/src/package/pikascript/main.py +++ b/src/package/pikascript/main.py @@ -1,4 +1,5 @@ import PikaStdLib +import PikaStdDevice from PikaObj import * print('hello world') @@ -6,4 +7,4 @@ print('mem.max :') mem.max() print('mem.now :') -mem.now() \ No newline at end of file +mem.now() diff --git a/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDeivce_GPIO.c b/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDevice_GPIO.c similarity index 98% rename from src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDeivce_GPIO.c rename to src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDevice_GPIO.c index f74a1fc43..bc9408759 100644 --- a/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDeivce_GPIO.c +++ b/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDevice_GPIO.c @@ -1,5 +1,5 @@ #include "BaseObj.h" -#include "PikaStdDeivce_GPIO.h" +#include "PikaStdDevice_GPIO.h" void PikaStdDeivce_GPIO_init(PikaObj *self) { diff --git a/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDevice_Time.c b/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDevice_Time.c index 2f8f62af9..d322aa554 100644 --- a/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDevice_Time.c +++ b/src/package/pikascript/pikascript-lib/PikaStdDevice/PikaStdDevice_Time.c @@ -1,5 +1,5 @@ #include "BaseObj.h" -#include "PikaStdDeivce_Time.h" +#include "PikaStdDevice_Time.h" void PikaStdDeivce_Time_sleep_ms(PikaObj *self, int ms) {