CINXE.COM

MicroPython - Python for microcontrollers

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head --> <link rel="icon" href="/static/img/favicon.ico"> <title>MicroPython - Python for microcontrollers</title> <link href="/static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"> <link href="/static/css/style.css?v=4" rel="stylesheet"> <link href="/static/pyblive/css/style.css" rel="stylesheet" type="text/css"/> <link href="/static/pyblive/css/codemirror.css" rel="stylesheet" type="text/css"/> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,800" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet"> <meta property="og:type" content="website" /> <meta property="og:url" content="http://micropython.org/" /> <meta property="og:title" content="MicroPython - Python for microcontrollers" /> <meta property="og:description" content="MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments." /> <meta property="og:image" content="http://micropython.org/static/img/Mlogo_138wh.png" /> </head> <body> <nav class="navbar navbar-dark" role="navigation"> <div class="main-menu"> <a class="navbar-brand" href='http://micropython.org'> <span> <img src ="/static/img/Mlogo_138wh.png" width="50px"> </span> <span> MicroPython </span> </a> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li class="nav-item"> <a class="nav-link" href="/download">DOWNLOAD</a> </li> <li class="nav-item"> <a class="nav-link" href="https://docs.micropython.org">DOCS</a> </li> <li class="nav-item"> <a class="nav-link" href="https://micropython.org/discord">DISCORD</a> </li> <li class="nav-item"> <a class="nav-link" href="https://github.com/orgs/micropython/discussions">DISCUSSIONS</a> </li> <li class="nav-item"> <a class="nav-link" href="https://github.com/micropython/micropython/wiki">WIKI</a> </li> <li class="nav-item"> <a class="nav-link" href="https://store.micropython.org">STORE</a> </li> </ul> </div> </div> </nav> <div id="sidebar" style="float:right;margin-right:16px;"> <!--ul> <li><a href="/">Home</a></li> <li><a href="/blog/">Blog</a></li> </ul--> </div> <div class="container"> <div class="row"> <div class="col-md-12 text-center"> <h1> MicroPython Live </h1> </div> <div class="col-md-offset-2 col-md-8"> <p> A MicroPython pyboard is connected to the internet for you to play with! Try the example scripts to flash LEDs, turn motors, produce sine-waves and make animations. </p> <p> There is only one pyboard and many people may be using this page at the same time. Your code will wait in a queue until the pyboard is available and then it will be executed. In the meantime you can watch what other people are doing. </p> <!--div style="margin-top:2em; border:1 px solid black;"> <strong>Notice</strong> <div> </div> </div--> </div> <div class="col-md-offset-1 col-md-10" style="margin-top:1em;"> <div class="grid"> <div class="upperbox"> <div class="col-1-3 centex"> <div id="pyboard-status" class="colour-blue-bg"> </div> <div id="curCode" class="outbox" style="font-size:70%;"> <h3>Current code</h3> <pre style="height:192px;"><samp class='stdout'></samp></pre> </div> <div id="curStdout" class="outbox" style="font-size:70%;"> <h3>Current output</h3> <pre style="height:193px;"><samp class='stdout'></samp><samp class='exc'></samp></pre> </div> </div> <div class="col-2-3 centex"> <!-- The Canvas size specified here is the "initial" internal resolution. jsmpeg will change this internal resolution to whatever the source provides. The size the canvas is displayed on the website is dictated by the CSS style. --> <canvas id="video-canvas" width="640" height="480"> <p> Please use a browser that supports the Canvas Element, like <a href="http://www.google.com/chrome">Chrome</a>, <a href="http://www.mozilla.com/firefox/">Firefox</a>, <a href="http://www.apple.com/safari/">Safari</a> or Internet Explorer 10 </p> </canvas> </div> </div> <div class="lowerbox"> <div class="col-1-2 centex outbox myoutbox"> <div> <h3>My code</h3> <div class="xx"> <div> <div id="runButton" class="button colour-green-bg"> RUN! </div> <div id="clearButton" class="button colour-orange-bg"> clear </div> <div id="examplePrevButton" class="button colour-blue-bg" style="margin-right:0;"> &#8592; </div> <div class="button colour-blue-bg" style="margin-left:0; margin-right:0; cursor:default;"> example </div> <div id="exampleNextButton" class="button colour-blue-bg" style="margin-left:0;"> &#8594; </div> </div> <textarea id="codeInput" rows="12" style="width:95%;"> import pyb pyb.LED(1).on()</textarea> </div> </div> </div> <div id="myStdout" class="col-1-2 centex outbox myoutbox"> <h3>My output</h3> <pre style="height:375px;"><samp class='stdout'></samp><samp class='exc'></samp></pre> </div> </div> </div> </div> </div> <div class="row" style="margin:30px 0;"> <div class="col-md-offset-2 col-md-8"> </div> </div> </div> <footer> <div class="container footercontent"> <div class="row"> <div class="col-xs-12 col-sm-3 col-md-2 col-md-offset-2"> <h3>MicroPython</h3> <ul> <li> <a href="https://micropython.org">Home</a> </li> <li> <a href="https://micropython.org/discord">Discord</a> </li> <li> <a href="https://github.com/orgs/micropython/discussions">Discussions</a> </li> <li> <a href="https://github.com/micropython/micropython/wiki">Wiki</a> </li> <li> <a href="https://www.github.com/micropython">GitHub</a> </li> </ul> </div> <div class="col-xs-12 col-sm-3 col-md-2"> <h3>Resources</h3> <ul> <li> <a href="http://docs.micropython.org/en/latest/pyboard/tutorial/index.html">Tutorials</a> </li> <li> <a href="http://docs.micropython.org">Documentation</a> </li> <li> <a href="/download">Download</a> </li> </ul> </div> <div class="col-xs-12 col-sm-3 col-md-2"> <h3>Contact</h3> <ul> <li> <a href="/contact">Contact us</a> </li> <li> <a href="irc://freenode/micropython">IRC</a> </li> <li> <a href="http://twitter.com/micropython">Twitter</a> </li> <li> <a href="http://www.facebook.com/micropython">Facebook</a> </li> <li> <a href="/privacypolicy">Privacy Policy</a> </li> <li> <a href="/termsandconditions">Terms &amp; Conditions</a> </li> </ul> </div> <div class="col-xs-12 col-md-8 col-md-offset-2"> <p>A project by <a href="http://dpgeorge.net">Damien George</a></p> <p>&copy; 2014-2023 George Robotics Limited</p> </div> </div> </div> </footer> <script src="/static/js/jquery-2.1.0.min.js"></script> <script src="/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" type="text/javascript"></script> <script src="/static/pyblive/js/jsmpg.js" type="text/javascript"></script> <script src="/static/pyblive/js/pyblive.js" type="text/javascript"></script> <script src="/static/pyblive/js/codemirror.js" type="text/javascript"></script> <!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="site/js/functions.js"></script> --> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10