use rgb as 070 main.py

This commit is contained in:
lyon 2022-01-16 12:54:04 +08:00
parent 4f76115441
commit e05f280e7e
2 changed files with 8 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<TargetCommonOption>
<Device>STM32G030C8Tx</Device>
<Vendor>STMicroelectronics</Vendor>
<PackID>Keil.STM32G0xx_DFP.1.3.0</PackID>
<PackID>Keil.STM32G0xx_DFP.1.4.0</PackID>
<PackURL>http://www.keil.com/pack/</PackURL>
<Cpu>IRAM(0x20000000-0x20001FFF) IROM(0x8000000-0x800FFFF) CLOCK(8000000) CPUTYPE("Cortex-M0+") TZ</Cpu>
<FlashUtilSpec></FlashUtilSpec>

View File

@ -6,3 +6,10 @@ mem = PikaStdLib.MemChecker()
print('hello pikascript')
print('mem used max:')
mem.max()
rgb = PikaPiZero.RGB()
rgb.enable()
while True:
rgb.flow()
print('flowing...')