mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
build from keil is ok
This commit is contained in:
parent
f06775076a
commit
22b445a2c8
@ -23,7 +23,7 @@
|
||||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
|
||||
#include "pikaScript.h"
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
|
@ -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...')
|
||||
|
||||
|
@ -2,4 +2,3 @@ pikascript-core==v0.8.3
|
||||
PikaStdLib==latest
|
||||
PikaStdDevice==latest
|
||||
STM32==v1.0.2
|
||||
PikaPiZero==latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user