add Time for examples

This commit is contained in:
Lyon 2021-10-04 10:18:13 +08:00
parent d33f78a73e
commit b31ce8ff6d
2 changed files with 15 additions and 0 deletions

10
examples/Time/main.py Normal file
View File

@ -0,0 +1,10 @@
import PikaStdLib
import STM32
time = STM32.Time()
while True:
time.sleep_ms(500)
print('0.5s')
time.sleep_s(1)
print('1s')

View File

@ -0,0 +1,5 @@
pikascript-core==v0.8.1
PikaStdLib==v1.0.1
PikaStdDevice==v1.3.0
STM32==v1.0.1
PikaPiZero==v1.0.1