Skip to content

Commit

Permalink
Added MicroPython example
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Apr 9, 2024
1 parent 7dca579 commit 6f998f7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/micropython.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MicroPython Terminal</title>
<script src="../mini-coi.js"></script>
<script type="module" src="https://cdn.jsdelivr.net/npm/@pyscript/[email protected]/dist/core.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@pyscript/[email protected]/dist/core.css">
<style>
html, body {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.xterm {
padding: 0;
width: 100vw;
height: 100vh;
width: 100dvw;
height: 100dvh;
}
</style>
</head>
<body>
<script type="mpy" worker terminal>
import code
code.interact()
</script>
</body>
</html>

0 comments on commit 6f998f7

Please sign in to comment.