• Complain

Monk - Programming the BBC micro:bit

Here you can read online Monk - Programming the BBC micro:bit full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: New York, year: 2018, publisher: McGraw-Hill Education;Mc Graw Hill Education, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Programming the BBC micro:bit
  • Author:
  • Publisher:
    McGraw-Hill Education;Mc Graw Hill Education
  • Genre:
  • Year:
    2018
  • City:
    New York
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Programming the BBC micro:bit: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Programming the BBC micro:bit" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Quickly write innovative programs for your micro:bit--no experience necessary! This easy-to-follow guide shows, step-by-step, how to quickly get started with programming and creating fun applications on your micro:bit. Written in the straightforward style that Dr. Simon Monk is famous for, Programming the BBC micro:bit: Getting Started with MicroPython begins with basic concepts and gradually progresses to more advanced techniques. You will discover how to use the micro:bits built-in hardware, use the LED display, accept input from sensors, attach external electronics, and handle wireless communication.;Cover -- Title Page -- Copyright Page -- About the Author -- Contents -- Acknowledgments -- 1 Introduction -- Plug Me In! -- History -- What Can It Do? -- micro:bit versus Raspberry Pi and Arduino -- So What Is Programming? -- Why MicroPython? -- Summary -- 2 Getting Started -- MicroPython Editors -- Online Editor -- The Mu Editor -- Downloading This Book?s Programs -- Summary -- 3 MicroPython Basics -- Numbers -- Variables -- Strings -- Converting Numbers to Strings -- Programs -- Looping Forever -- for Loops -- ifs and elses -- More on while -- Timer Example -- Summary -- 4 Functions -- What Are Functions? -- Parameters -- Global Variables -- Return Values -- Advanced Parameters -- Summary -- 5 Lists and Dictionaries -- Lists -- Message Board Example -- The Lowdown on Lists -- Dictionaries -- An Example -- Dictionaries in Detail -- Summary -- 6 Writing Your Own Programs -- Writing Software -- State Machine Design -- Revisiting the Timer Example -- Debugging -- More Python -- Summary -- 7 Modules and Classes -- Built-in Modules -- Classes and Instances -- Inheritance -- Making Simple Modules -- Making a Module That Uses a Class -- Modules from the Community -- Summary -- 8 The LED Display -- Controlling Individual LEDs -- Scrolling Text -- Showing Text -- Showing an Image -- Animation -- Racing Game -- Summary -- 9 micro:bit Sensors -- Buttons Revisited -- Gestures -- Raw Accelerometer Data -- Magnetometer -- Processor Temperature -- Touch -- Summary -- 10 Connecting Electronics -- Battery Power -- micro:bit Operating Voltage -- GPIO Pins 0, 1, and 2 -- Power Out -- Sound Output -- Neopixels -- The Edge Connector -- Summary -- 11 Radio and Communications -- Basic micro:bit-to-micro:bit Communication -- Messaging Different Users -- Advanced Radio Settings -- Computer-to-micro:bit Communication -- Remote Control of Your micro:bit Using Python -- Summary -- 12 JavaScript Blocks Editor -- The Editor -- Getting Started -- Events -- Variables and Loops -- Magnetometer Ex ample -- Summary -- A MicroPython Reference -- Language Constructs -- Comparisons -- Numbers -- Strings -- Lists -- Dictionaries -- Type Conversions -- B Hardware -- micro:bit Edge Connector Pinout -- Suppliers and Manufacturers -- Components -- Index -- A -- B -- C -- D -- E -- F -- G -- H -- I -- J -- K -- L -- M -- N -- O -- P -- R -- S -- T -- U -- V -- W.

Programming the BBC micro:bit — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Programming the BBC micro:bit" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Contents
Guide
Page List

Copyright 2018 by McGraw-Hill Education All rights reserved Except as - photo 1

Copyright 2018 by McGraw-Hill Education All rights reserved Except as - photo 2

Copyright 2018 by McGraw-Hill Education. All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a data base or retrieval system, without the prior written permission of the publisher.

ISBN: 978-1-26-011759-2
MHID: 1-26-011759-6

The material in this eBook also appears in the print version of this title: ISBN: 978-1-26-011758-5, MHID: 1-26-011758-8.

eBook conversion by codeMantra
Version 1.0

All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps.

McGraw-Hill Education eBooks are available at special quantity discounts to use as premiums and sales promotions or for use in corporate training programs. To contact a representative, please visit the Contact Us page at www.mhprofessional.com.

Information has been obtained by McGraw-Hill Education from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, McGraw-Hill Education, or others, McGraw-Hill Education does not guarantee the accuracy, adequacy, or completeness of any information and is not responsible for any errors or omissions or the results obtained from the use of such information.

TERMS OF USE

This is a copyrighted work and McGraw-Hill Education and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill Educations prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms.

THE WORK IS PROVIDED AS IS. McGRAW-HILL EDUCATION AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill Education and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill Education nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill Education has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill Education and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise.

To my mother Anne Kemp,
whose kindness and positive attitude to life
are an example for all who know her
.

About the Author

Simon Monk (Preston, UK) has a bachelors degree in cybernetics and computer science and a Ph.D. in software engineering. He has been an active electronics hobbyist since his early teens and since 2012 has divided his work life between writing books and designing products for the business he started with his wife (http://monkmakes.com), which manufactures hobby electronics kits and boards.

You can find out more about Simons books at http://simonmonk.org. You can also follow him on Twitter, where he is @simonmonk2.

CONTENTS
ACKNOWLEDGMENTS

Id like to thank my editor, Mike McCabe, and everyone at TAB/McGraw-Hill Education for being such a great publisher to work for. Special thanks are due to Patty Wallenburg for her wonderful organizational skills, keen eye, and ability to make my books look as good as they possibly can.

Many thanks to David Whale for taking the time to complete a detailed and helpful technical review of the book and to all at the micro:bit foundation who have been friendly and helpful during the writing of this book.

Once again, thanks to Linda for believing in me and giving me the support and encouragement to make a success of writing.

Simon Monk

1
Introduction

The micro:bit () is a small uncased circuit board with a display made up of 25 LEDs, a couple of buttons, and some sensors. Crucially, it has a micro-USB socket that allows you to connect it to your computer both to power it and to send programs to it. The micro:bit can also be connected to a battery pack so that it can be used without your computer.

Figure 1-1 The microbit A front B back The microbit was designed for - photo 3

Figure 1-1The micro:bit: (A) front; (B) back.

The micro:bit was designed for use in education, but this useful little device has also endeared itself to electronics hobbyists and makers around the world.

Plug Me In!

To use your micro:bit, you will need a USB to micro-USB lead to connect it to your computer. You may have bought one at the same time as you bought your micro:bit. But if not, dont worry because this lead is probably the most common USB lead in existence. The micro-USB connector on the end that plugs into the micro:bit is the same plug as is used on most non-Apple cellphones and countless other electronics devices. You will occasionally come across USB leads that are charge only. This means that they do not have the necessary wires inside to provide a data connection for the micro:bit. So, if you have problems when it comes to connecting to your micro:bit, try changing the lead for one that claims to be a data lead.

shows a micro:bit attached to a laptop. This laptop happens to be an Apple, but the micro:bit can be used with a Windows, Linux, Apple, or even Raspberry Pi computer.

Figure 1-2 Connecting your microbit to your computer Plug your new microbit - photo 4

Figure 1-2Connecting your micro:bit to your computer.

Plug your new micro:bit in, and a little animation will start that displays a welcome Hello message and then goes on to point out the two A and B buttons built into the board. Take some time to familiarize yourself with the board, and follow the prompts on the scrolling display.

If you want to start again, just press the Reset button (see ) just to the right of the the USB connector.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Programming the BBC micro:bit»

Look at similar books to Programming the BBC micro:bit. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Programming the BBC micro:bit»

Discussion, reviews of the book Programming the BBC micro:bit and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.