build from keil is ok

This commit is contained in:
graduateDesign 2021-10-09 00:29:22 +08:00
parent f06775076a
commit 22b445a2c8
3 changed files with 1 additions and 8 deletions

View File

@ -23,7 +23,7 @@
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "pikaScript.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/

View File

@ -1,5 +1,4 @@
import STM32
import PikaPiZero
import PikaStdLib
time = STM32.Time()
@ -8,7 +7,6 @@ adc = STM32.ADC()
pin = STM32.GPIO()
pwm = STM32.PWM()
uart = STM32.UART()
rgb = PikaPiZero.RGB()
mem = PikaStdLib.MemChecker()
uart.init()
@ -16,15 +14,11 @@ uart.setId(1)
uart.setBaudRate(115200)
uart.enable()
rgb.init()
rgb.enable()
print('hello 2')
print('mem used max:')
mem.max()
while True:
time.sleep_ms(10)
rgb.flow()
print('flowing...')

View File

@ -2,4 +2,3 @@ pikascript-core==v0.8.3
PikaStdLib==latest
PikaStdDevice==latest
STM32==v1.0.2
PikaPiZero==latest