Makecode and CODAL: Intuitive and Efficient Embedded Systems Programming for Education

Total Page:16

File Type:pdf, Size:1020Kb

Makecode and CODAL: Intuitive and Efficient Embedded Systems Programming for Education MakeCode and CODAL: Intuitive and Efficient Embedded Systems Programming for Education James Devine Joe Finney Peli de Halleux Lancaster University, UK Lancaster University, UK Microsoft, USA [email protected] [email protected] [email protected] Michał Moskal Thomas Ball Steve Hodges Microsoft, USA Microsoft, USA Microsoft, UK [email protected] [email protected] [email protected] Abstract Across the globe, it is now commonplace for educators to engage in the making (design and development) of embed- ded systems in the classroom to motivate and excite their students. This new domain brings its own set of unique re- quirements. Historically, embedded systems development requires knowledge of low-level programming languages, lo- Figure 1. Example projects undertaken within education: cal installation of compilation toolchains, device drivers, and Rishworth School sent a micro:bit to space [19] (left); The applications. For students and educators, these requirements micro:bit placed in a custom-built rocket car for teleme- can introduce insurmountable barriers. try [20, 21] (right). We present the motivation, requirements, implementation, and evaluation of a new programming platform that enables novice users to create software for embedded systems. The 1 Introduction platform has two major components: 1) Microsoft MakeCode Recent years have witnessed expansive growth in the popu- (www.makecode.com), a web app that encapsulates an entire larity and ubiquity of embedded systems. This growth can beginner IDE for microcontrollers; and 2) CODAL, an effi- be primarily attributed to the emergence of new application cient component-oriented C++ runtime for microcontrollers. domains ranging from wearables, to home automation, indus- We show how MakeCode and CODAL provide an accessible, trial automation, and smart grids ś a phenomenon broadly cross-platform, installation-free programming experience referred to as the Internet of Things (IoT). As the IoT con- for the BBC micro:bit and other embedded devices. tinues to grow, it has become more pervasive ś far beyond the realm of domain experts and into the everyday lives of CCS Concepts · Software and its engineering → Em- the public. This has led to growth in non-expert developers bedded software; Runtime environments; Integrated and vi- actively creating software for embedded systems. Small to sual development environments; medium sized businesses now create new products through Keywords education, classroom, embedded systems rapid prototyping of embedded devices. Hobbyist makers cre- ACM Reference Format: ate novel technical projects to inspire themselves and society. James Devine, Joe Finney, Peli de Halleux, Michał Moskal, Thomas And now, more than ever before, educators are making exten- Ball, and Steve Hodges. 2018. MakeCode and CODAL: Intuitive sive use of physical computing devices as a direct means to and Efficient Embedded Systems Programming for Education. In teach and inspire a generation of students ś and to prepare Proceedings of 19th ACM SIGPLAN/SIGBED Conference on Languages, them for a society where IoT will be the norm. These new Compilers, and Tools for Embedded Systems (LCTES’18). ACM, New developers all share a common characteristic: they are not York, NY, USA, 12 pages. https://doi.org/10.1145/3211332.3211335 professional software developers [9, 10, 16]. To address this trend, in 2015 a consortium of industry and academic partners came together to develop the BBC micro:bit ś an embedded device designed specifically for education. One million of these devices were delivered to UK school children in 2016. The micro:bit is a highly capable IoT device containing a 32-bit ARM Cortex-M0 processor, in- LCTES’18, June 19ś20, 2018, Philadelphia, PA, USA tegrated light level, temperature, acceleration and magnetic © 2018 Copyright held by the owner/author(s). ACM ISBN 978-1-4503-5803-3/18/06. sensors, touch sensitive inputs, and USB and 2.4GHz radio https://doi.org/10.1145/3211332.3211335 communications. 19 LCTES’18, June 19ś20, 2018, Philadelphia, PA, USA J. Devine, J. Finney, P. Halleux, M. Moskal, T. Ball, S. Hodges Figure 1 highlights two example educational projects based Table 1. Example microcontroller devices in relationship on the BBC micro:bit. The first is a data gathering experiment, to a typical PC. Device abbreviations: Uno (Arduino Uno), where multiple sensor data was recorded to non-volatile micro:bit (BBC micro:bit), CPX (Adafruit Circuit Playground memory as the device was launched into near space (32.5km Express), PC (Personal Computer). altitude), along with an externally interfaced camera and Word CPU GPS unit. The second highlights a live data telemetry appli- Device RAM Flash Size Speed CPU cation, where acceleration data was streamed in real-time via Uno 2 kB 32 kB 8 16MHz AVR Bluetooth Low Energy to enable the profiling of chemical- micro:bit 16 kB 256 kB 32 16MHz ARMv6-M rocket powered model vehicles. These projects are highly CPX 32 kB 256 kB 32 48MHz ARMv6-M sophisticated and were undertaken by high school educators PC 16 GB 1 TB 64 3GHz x86-64 and their students. 1 We introduce an open-source platform for embedded permitted by policy and/or access to the necessary technical devices such as the micro:bit that enables the development support is not present. An effective solution must therefore of embedded applications by non-expert programmers. This provide a fully transparent, platform agnostic, zero installation platform consists of two major components: 1) Microsoft experience to developing embedded software. MakeCode (www.makecode.com), a web app providing a beginner IDE for embedded systems; and 2) CODAL Optimization for Code Efficiency: The projects of Figure 1 (Component-Oriented Device Abstraction Layer), an efficient are enabled by small, highly resource-limited programmable C++ runtime with high-level programming abstractions. MCUs, which may have as little as a few kilobytes of RAM In the remainder of the introduction, we present the major and FLASH memory. Table 1 compares the core capabilities design challenges in bringing embedded systems into edu- of the class of MCU-based devices typically used in the edu- cation, briefly describe the architecture of our solution, and cation domain to a typical PC. Note that these devices have a give an overview of the paper and our results. proportionally large amount of processing power, relative to their storage. Consider the BBC micro:bit vs. a typical PC: the 1.1 Design Challenges micro:bit has about 100 times less CPU power, but 106 times Enabling novice programmers to successfully develop em- less RAM, and 106 times less storage. A language/runtime bedded applications is a non-trivial task. Throughout our should therefore not only seek to provide high code density and research we have identified a number of design challenges spatial efficiency, but actively trade off temporal for spatial that we address through MakeCode and CODAL. efficiency where possible. High Level Languages: Programming languages for micro- Asynchronous and Concurrent Programming: It is al- controller units (MCUs) have not kept pace with advances ready well understood that novice programmers benefit from in hardware. Despite active research in the field, the C/C++ event-based programming paradigms [17, 18, 26]. This is in- languages remain the standard for embedded systems: they creasingly relevant for embedded systems due to the typically provide a familiar imperative programming model, with com- asynchronous nature of their hardware. MCUs still follow pilers that produce highly efficient code, and enable low level Moore’s law, but this additional capacity is not typically in- access to hardware features when necessary. The Arduino vested in speeding up processors. Instead, more independent project (www.arduino.cc), started in 2003, and ARM’s Mbed peripherals (such as Bluetooth/WiFi radio modules, audio platform (www.mbed.org) both rely heavily on a C/C++ pro- inputs/output processors, etc.) are integrated onto the same gramming model [6, 24]. However, the limitations of using package as the CPU as a system-on-chip. Such peripherals C/C++ as an application programming language for inexpe- often operate independently of the main CPU. An effective rienced developers are well understood [8]. To address this, language/runtime should directly support an asynchronous higher level languages such as JavaScript, Python, and even interaction model designed to cooperate with the independent visual programming languages are required. nature of peripherals while remaining highly intuitive to the programmer. Zero Installation Architecture: The development environ- ment for existing embedded systems typically requires the Intuitive and Extensible APIs: Intuitive APIs and program- installation of code editors, custom device drivers, com- ming models are required to support novice users, yet it is piler toolchains, and even additional programming hardware equally important that these APIs remain complete enough (such as a JLink programmer). For many, particularly in the to realise the ambitious projects that may be undertaken as field of education, this presents a high adoption barrier asin students advance: simplification via the reduction of func- many schools, custom hardware and software is simply not tionality is not a valid approach. An effective solution must provide APIs that are consistent, easy to understand/use, and 1 MakeCode is open-source at https://github.com/microsoft/pxt; CODAL
Recommended publications
  • Micropython for Satlink 3 Documentation Release 1.8.4
    MicroPython for Satlink 3 Documentation Release 1.8.4 Damien P. George, contributors, and Sutron Corporation Jul 28, 2017 CONTENTS 1 Python first time setup & configuration1 1.1 1. Download & Install LinkComm....................................1 1.2 2. Download & Install Python......................................1 1.3 3. Download & Install Pyinstaller....................................3 1.4 4. Download & Install PyCharm.....................................3 1.5 5. Testing out .py to .exe converter....................................5 1.6 6. Python PyQt5 GUI..........................................6 1.7 7. Connect PyCharm into external programs like linkcomm or micropython..............6 1.8 8. Configure PyCharm for program development using LinkComm..................9 1.9 9. Configure PyCharm with SL3 API for auto completion....................... 11 1.10 10. Setting docstring stub in PyCharm.................................. 13 2 MicroPython libraries 15 2.1 Python standard libraries and micro-libraries.............................. 15 2.2 MicroPython-specific libraries...................................... 16 2.3 Libraries specific to the Satlink 3.................................... 19 3 The MicroPython language 39 3.1 Overview of MicroPython Differences from Standard Python..................... 39 3.2 Code examples of how MicroPython differs from Standard Python with work-arounds........ 41 3.3 The MicroPython Interactive Interpreter Mode (aka REPL)....................... 56 3.4 Maximising Python Speed.......................................
    [Show full text]
  • Setting up Your Environment
    APPENDIX A Setting Up Your Environment Choosing the correct tools to work with asyncio is a non-trivial choice, since it can significantly impact the availability and performance of asyncio. In this appendix, we discuss the interpreter and the packaging options that influence your asyncio experience. The Interpreter Depending on the API version of the interpreter, the syntax of declaring coroutines change and the suggestions considering API usage change. (Passing the loop parameter is considered deprecated for APIs newer than 3.6, instantiating your own loop should happen only in rare circumstances in Python 3.7, etc.) Availability Python interpreters adhere to the standard in varying degrees. This is because they are implementations/manifestations of the Python language specification, which is managed by the PSF. At the time of this writing, three relevant interpreters support at least parts of asyncio out of the box: CPython, MicroPython, and PyPy. © Mohamed Mustapha Tahrioui 2019 293 M. M. Tahrioui, asyncio Recipes, https://doi.org/10.1007/978-1-4842-4401-2 APPENDIX A SeTTinG Up YouR EnViROnMenT Since we are ideally interested in a complete or semi-complete implementation of asyncio, our choice is limited to CPython and PyPy. Both of these products have a great community. Since we are ideally using a lot powerful stdlib features, it is inevitable to pose the question of implementation completeness of a given interpreter with respect to the Python specification. The CPython interpreter is the reference implementation of the language specification and hence it adheres to the largest set of features in the language specification. At the point of this writing, CPython was targeting API version 3.7.
    [Show full text]
  • Python Crypto Misuses in the Wild
    Python Crypto Misuses in the Wild Anna-Katharina Wickert Lars Baumgärtner [email protected] [email protected] Technische Universität Darmstadt Technische Universität Darmstadt Darmstadt, Germany Darmstadt, Germany Florian Breitfelder Mira Mezini [email protected] [email protected] Technische Universität Darmstadt Technische Universität Darmstadt Darmstadt, Germany Darmstadt, Germany ABSTRACT 1 INTRODUCTION Background: Previous studies have shown that up to 99.59 % of the Cryptography, hereafter crypto, is widely used nowadays to protect Java apps using crypto APIs misuse the API at least once. However, our data and ensure confidentiality. For example, without crypto, these studies have been conducted on Java and C, while empirical we would not be able to securely use online banking or do online studies for other languages are missing. For example, a controlled shopping. Unfortunately, previous research results show that crypto user study with crypto tasks in Python has shown that 68.5 % of the is often used in an insecure way [3, 4, 7, 9, 11]. One such problem is professional developers write a secure solution for a crypto task. the choice of an insecure parameter, like an insecure block mode, for Aims: To understand if this observation holds for real-world code, crypto primitives like encryption. Many static analysis tools exist we conducted a study of crypto misuses in Python. Method: We to identify these misuses such as CryptoREX [13], CryptoLint [4], developed a static analysis tool that covers common misuses of5 CogniCryptSAST [8], and Cryptoguard [12]. different Python crypto APIs. With this analysis, we analyzed 895 While these tools and the respective in-the-wild studies concen- popular Python projects from GitHub and 51 MicroPython projects trate on Java and C, user studies suggest that the existing Python for embedded devices.
    [Show full text]
  • Circuitpython Documentation Release 0.0.0
    CircuitPython Documentation Release 0.0.0 Damien P. George, Paul Sokolovsky, and contributors Jun 26, 2020 API and Usage 1 Adafruit CircuitPython 3 1.1 Status...................................................3 1.2 Supported Boards............................................3 1.2.1 Designed for CircuitPython...................................3 1.2.2 Other..............................................4 1.3 Download.................................................4 1.4 Documentation..............................................4 1.5 Contributing...............................................4 1.6 Differences from MicroPython......................................4 1.6.1 Behavior.............................................5 1.6.2 API...............................................5 1.6.3 Modules.............................................5 1.6.4 atmel-samd21 features.....................................5 1.7 Project Structure.............................................5 1.7.1 Core...............................................6 1.7.2 Ports...............................................6 1.8 Full Table of Contents..........................................7 1.8.1 Core Modules..........................................7 1.8.2 Supported Ports......................................... 47 1.8.3 Troubleshooting......................................... 56 1.8.4 Additional Adafruit Libraries and Drivers on GitHub..................... 57 1.8.5 Design Guide.......................................... 59 1.8.6 Architecture..........................................
    [Show full text]
  • The BBC Micro:Bit Inside And
    The micro:bit… inside and out Joe Finney [email protected] School of Computing and Communications Lancaster University UK [email protected] School of Computing and Communications: InfoLab21 What computers used to look like… (I had one of these!) Commodore 64 ( I had one of these) What computers used to look like… (I didn’t have one of these – but martin did!) Sinclair ZX Spectrum (I didn’t have one of these) And then there was this one too! BBC Model B (Delivered free to every school in the UK in the 1980s) Circa January 2015 Micro:bit Legend Howard Baker “We have some prototypes…” BBC R&D by Michael Sparks early 2015… http://www.bbc.co.uk/rd/blog/2015-07-prototyping-the-bbc-microbit Delivered by a wide partnership More Prototyping… The micro:bit SB1… And More Prototyping… Micro:bits of Legend… In the most unlikely places… Micro:bit SB2 Proof of Concept… In the most unlikely places… Micro:Bit Font is called “Pendolino” for a reason… In the most unlikely places… Micro:bit device drivers largely written at the car park at Cockerham Junior Football Club… A whirlwind of events… But not without its problems… We delivered 22nd March 2016… DEMO: Coding a micro:bit with MakeCode Inside the micro:bit… . 25 LED matrix screen . Light sensor . User definable buttons . 17 Digital input/output . 6 Analog input . 3 PWM output . 3 Touch sensitive . I2C, SPI, UART Inside the micro:bit… . 16MHz ARM Cortex M0 . 16KB RAM, 256K FLASH . USB Storage/Serial/Debug . 3 axis accelerometer .
    [Show full text]
  • Scratch, Blocky & Co., Blocksysteme Zum Programmieren
    Notizen Lothar Griess • 26. Mai 2018 Scratch, Blocky & Co., Blocksysteme zum Programmieren Scratch-Alternativen, … https://wiki.scratch.mit.edu/wiki/Alternatives_to_Scratch HTML5 als Grundlage wär besser, die Zukunft von Flash ist unklar. Liste der Modifikationen ... https://scratch-dach.info/wiki/Liste_der_Modifikationen Enchanting (Scratch Modifikation) ... https://scratch-dach.info/wiki/Enchanting_(Scratch_Modifikation) Beetle Blocks ist wie Scratch oder BlocksCAD für 3D-Grafiken... https://scratch-dach.info/wiki/Beetle_Blocks Beetle Blocks GitHub Repository ... https://github.com/ericrosenbaum/BeetleBlocks Beetle Blocks (3D-Design), … http://beetleblocks.com/ Mod Share … z.B.: Supported Scratch-Modifications … https://wiki.scratch.mit.edu/wiki/Mod_Share Scratch … https://wiki.scratch.mit.edu/wiki/Scratch Snap … https://wiki.scratch.mit.edu/wiki/Snap_(Scratch_Modification) Bingo … https://wiki.scratch.mit.edu/wiki/Bingo_(Scratch_Modification) Panther … https://wiki.scratch.mit.edu/wiki/Panther_(Scratch_Modification) Insanity … https://wiki.scratch.mit.edu/wiki/Insanity_(Scratch_Modification) … weitere: Stack, Kitcat, Ghost, Streak • • • Blockly is used by hundreds of projects, most of them educational: ... https://developers.google.com/blockly/ Blockly, RoboBlockly, ... https://code.org/learn Google Education, 1 Stunde, ... https://hourofcode.com/blockly Got PCs with slow (or non-existent) internet access? Download the Blockly tutorials that were the precursor of the Code.org tutorials - a single 3MB ZIP file can be loaded onto any computer or used off a memory stick Blockly Games … https://blockly-games.appspot.com/ App Inventor … http://appinventor.mit.edu/explore/ Code (div.) … https://code.org/ Ozo Blockly (Mini-Roboter) - Ozobot Bit robot using the OzoBlockly editor. … http://ozoblockly.com/ micro:bit (Raspberrs Pi, MicroPython) … http://microbit.org/ BlocklyProp … www.parallax.com/product/program-blocklyprop wonder workshop (dash-Roboter) … www.makewonder.de Robertar, NEPO (div.) … https://lab.open-roberta.org// Made w/ Code (div.
    [Show full text]
  • PDF Tutorial
    www.adeept.com Catalogue About Micro bit ............................................................................................................................ - 1 - Project 1 Neopixel ................................................................................................................ - 10 - Rainbow ........................................................................................................................... - 10 - Makecode ................................................................................................................ - 10 - MU microPython .................................................................................................... - 18 - LED Rotate ...................................................................................................................... - 25 - Makecode ................................................................................................................ - 25 - Mu microPython: .................................................................................................. - 27 - Neopixel ........................................................................................................................... - 28 - Makecode ................................................................................................................ - 28 - Mu microPython .................................................................................................... - 28 - Project 2 Motor .....................................................................................................................
    [Show full text]
  • The Road to ARM an Unfinished Tale
    The Road to ARM An unfinished tale Javier Guerra - 2018-09-07 Lua Workshop ‘18 - Kaunas, Lithuania 1 The beginning Acorn Archimedes (1987) - 32 bit ARM-2 - 8MHz - 512KB RAM - 256 colors - 8-channel sound (mono output) 2 Today - Mobile (and laptops) - Raspberry - Embedded - Server 3 Mobile 4 Education Raspberry PI 3: - 4-core ARMv8 1.2GHz - 1GB RAM - WiFi, Bluetooth, Ethernet, USB, HDMI, camera port Raspberry Pi Zero: - 1-core ARMv6 BBC Micro:bit 1GHz - 5 x 4 cm - 512MB RAM - ARM Cortex-M0, 16MHz - 1 µUSB, miniHDMI - 256KB Flash / 16KB RAM - WiFI/Bluetooth (W) - USB, Bluetooth, buttons, LED - Camera port, matrix, accelerometer, compass 40-pin GPIO - 20 GPIO pins edge connector 5 Embedded 6 Embedded 7 Embedded peripherals STM32F030 : - Cortex-M0 - 48 MHz - 16 KB Flash / 4KB SRAM - 5 timers, PWM - SPI, I²C, USART, 15 GPIO pins - 12-bit A/D 8 SERVERS! Qualcomm Centriq 10nm - ARMv8 64-bit 2.5GHz - 46 cores/socket - LLC : 1.25MB/core - 120W 9 CF situation - LuaJIT - Go - C - C++ - Rust - Python - eBPF - JavaScript 10 Docker + qemu-user $ docker run --rm -it stretch-arm64/master:latest root@d955deefbaa4:/# uname -a Linux d955deefbaa4 4.15.0-26-generic #28-Ubuntu SMP Wed Jul 4 16:24:29 UTC 2018 aarch64 GNU/Linux root@d955deefbaa4:/# lscpu Architecture: aarch64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 8 On-line CPU(s) list: 0-7 Thread(s) per core: 2 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 142 Model name: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz 11 Stepping: 10 CPU
    [Show full text]
  • How Python Is Winning New Friends
    How Python is Winning New Friends Steve Holden CTO, Global Stress Index Limited [email protected] IntroducFons • Programmer since 1967 • Computaonal scienFst by training • Engineer at heart • Python user since Python 1.4 (c. 1995) • Enjoy helping people to learn I’ve WriSen about Python Any Python users out there? Developments in CompuFng SOME HISTORY 1948 Programming Was Hard • No operang system • No libraries • No compilers • No assemblers • The painful process of abstracFon layering began 1977 Easier to Program • Assemblers/compilers available • UNIX starFng to emerge as a common base – Microprogramming handled hardware complexity • Storage flexibly handled by the OS • Networking heading to ubiquity 1984 2015 2016 2017 2020 ? Whatever it is, it will be complex! And so to Python “BUT IT’S [JUST] A SCRIPTING LANGUAGE …” What’s a “ScripFng Language”? • “First they ignore you; then they abuse you; then they crack down on you and then you win.” – not Mahatma Ghandi What’s a “ScripFng Language”? • “First they ignore you; then they abuse you; then they crack down on you and then you win.” – not Mahatma Ghandi • “Ridicule is like repression. Both give place to respect when they fail to produce the intended effect.” – Mahatma Ghandi Note to Purists • Learners do not have complex needs – Simplicity and consistency are important – ExecuFon speed mostly isn’t • Direct hands-on experience enables • Large resources not required – Wide availability and ease of access are criFcal The Programming Audience • Professional soiware engineers • ScienFsts • Lab
    [Show full text]
  • Bfree: Enabling Battery-Free Sensor Prototyping with Python
    BFree: Enabling Battery-free Sensor Prototyping with Python VITO KORTBEEK, Delft University of Technology, The Netherlands ABU BAKAR, Northwestern University, USA STEFANY CRUZ, Northwestern University, USA KASIM SINAN YILDIRIM, University of Trento, Italy PRZEMYSŁAW PAWEŁCZAK, Delft University of Technology, The Netherlands JOSIAH HESTER, Northwestern University, USA Building and programming tiny battery-free energy harvesting embedded computer systems is hard for the average maker because of the lack of tools, hard to comprehend programming models, and frequent power failures. With the high ecologic cost of equipping the next trillion embedded devices with batteries, it is critical to equip the makers, hobbyists, and novice embedded systems programmers with easy-to-use tools supporting battery-free energy harvesting application development. This way, makers can create untethered embedded systems that are not plugged into the wall, the desktop, or even a battery, providing numerous new applications and allowing for a more sustainable vision of ubiquitous computing. In this paper, we present BFree, a system that makes it possible for makers, hobbyists, and novice embedded programmers to develop battery-free applications using Python programming language and widely available hobbyist maker platforms. BFree provides energy harvesting hardware and a power failure resilient version of Python, with durable libraries that enable common coding practice and off the shelf sensors. We develop demonstration applications, benchmark BFree against battery-powered
    [Show full text]
  • BBC Micro:Bit Lesson #0 Created by Carter Nelson
    BBC micro:bit Lesson #0 Created by Carter Nelson Last updated on 2018-08-22 04:02:28 PM UTC Guide Contents Guide Contents 2 Intro 3 Lesson Parts 5 Required: 5 Take a Tour! 6 Microcontroller 8 Battery Jack & Supply 9 JST PH 2-Pin Cable - Female Connector 100mm 9 Choosing Battery Power Supply 10 USB Connection 11 Status LED 12 Reset Button 13 Bluetooth Antenna 14 Compass 15 Accelerometer 16 Edge Connector 17 Buttons 19 LED Matrix 20 Pads 21 Let's Code 23 It's Like a USB Thumb Drive! 23 JavaScript Blocks Editor 24 Hello Heart Example 25 Python Editor 31 What Next? 34 © Adafruit Industries https://learn.adafruit.com/bbc-micro-bit-lesson-number-0 Page 2 of 34 Intro So what is this unassuming little board? It's name is the BBC micro:bit (https://adafru.it/yEK), and it is a little computer you can write programs for. It has various gadgets like buttons and lights that you can use to do all kinds of fun stuff. There's even a compass! In this guide we'll briefly go over the main features of the BBC micro:bit, just so you have an idea what's going on. The main web site is at www.microbit.org (https://adafru.it/yEL) where you can go to find more information. The BBC part of the name stands for British Broadcasting Corporation (https://adafru.it/yEM). There's a lot of history (https://adafru.it/yEN) to why the BBC would get involved with making a little computer.
    [Show full text]
  • Pdf for a Detailed Explanation, Along with Various Techniques for Debouncing
    MicroPython Documentation Release 1.11 Damien P. George, Paul Sokolovsky, and contributors May 29, 2019 CONTENTS i ii CHAPTER ONE MICROPYTHON LIBRARIES Warning: Important summary of this section • MicroPython implements a subset of Python functionality for each module. • To ease extensibility, MicroPython versions of standard Python modules usually have u (“micro”) prefix. • Any particular MicroPython variant or port may miss any feature/function described in this general docu- mentation (due to resource constraints or other limitations). This chapter describes modules (function and class libraries) which are built into MicroPython. There are a few categories of such modules: • Modules which implement a subset of standard Python functionality and are not intended to be extended by the user. • Modules which implement a subset of Python functionality, with a provision for extension by the user (via Python code). • Modules which implement MicroPython extensions to the Python standard libraries. • Modules specific to a particular MicroPython port and thus not portable. Note about the availability of the modules and their contents: This documentation in general aspires to describe all modules and functions/classes which are implemented in MicroPython project. However, MicroPython is highly configurable, and each port to a particular board/embedded system makes available only a subset of MicroPython libraries. For officially supported ports, there is an effort to either filter out non-applicable items, or mark individual descriptions with “Availability:” clauses describing which ports provide a given feature. With that in mind, please still be warned that some functions/classes in a module (or even the entire module) described in this documentation may be unavailable in a particular build of MicroPython on a particular system.
    [Show full text]