mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
Update example_micropython.py
This commit is contained in:
parent
deb7941fd2
commit
d27a94bc6e
@ -1,6 +1,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import gc
|
import gc
|
||||||
import struct
|
import struct
|
||||||
|
import sys
|
||||||
from array import array
|
from array import array
|
||||||
|
|
||||||
import console
|
import console
|
||||||
@ -58,7 +59,8 @@ def print_buf(
|
|||||||
|
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"This is μPython saying hello from the on page console!"
|
"This is μPython saying hello from the on page console!\n"
|
||||||
|
f"Version {sys.version}"
|
||||||
)
|
)
|
||||||
console.log(
|
console.log(
|
||||||
"This is μPython saying hello from the JS console!"
|
"This is μPython saying hello from the JS console!"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user