Read more
Informationen zum Autor GARETH HALFACREE is the author of the Raspberry Pi User Guide and an expert in educational and embedded computing. A noted technology journalist and long-time tech author, Gareth also has an extensive background in computing education. Klappentext The go-to guide to getting started with the BBC micro:bit and exploring all of its amazing capabilities.The BBC micro:bit is a pocket-sized electronic development platform built with education in mind. It was developed by the BBC in partnership with major tech companies, communities, and educational organizations to provide kids with a fun, easy, inexpensive way to develop their digital skills. With it, kids (and grownups) can learn basic programming and coding while having fun making virtual pets, developing games, and a whole lot more.Written by internationally bestselling tech author Gareth Halfacree and endorsed by the Micro:bit Foundation, The Official BBC micro:bit User Guide contains what you need to know to get up and running fast with the BBC micro:bit. Learn everything from taking your first steps with the BBC micro:bit to writing your own programs. You'll also learn how to expand its capabilities with add-ons through easy-to-follow, step-by-step instructions.* Set up your BBC micro:bit and develop your digital skills* Write code in JavaScript Blocks, JavaScript, and Python* Discover the BBC micro:bit's built-in sensors* Connect the BBC micro:bit to a Raspberry Pi to extend its capabilities* Build your own circuits and create hardwareThe Official BBC micro:bit User Guide is your go-to source for learning all the secrets of the BBC micro:bit. Whether you're just beginning or have some experience, this book allows you to dive right in and experience everything the BBC micro:bit has to offer. Zusammenfassung The go-to guide to getting started with micro:bit and exploring all of the mini-computer's amazing capabilities The micro:bit is a pocket-sized electronic development platform built with education in mind. Inhaltsverzeichnis Foreword xi Introduction xiii Part I Chapter 1 Meet the BBC micro:bit 3 A Tour of the Board 3 Breaking It Down 5 Display 6 Buttons 7 Processor 8 Radio 9 Accelerometer 10 Compass 11 Input-Output Pins 12 Micro-USB Port 13 Battery Connector 14 Chapter 2 Getting Started with the BBC micro:bit 17 Handling the BBC micro:bit 17 Powering the BBC micro:bit 18 USB Power 18 Battery Power 20 Greetings from the BBC micro:bit 23 Signs of Life 24 Testing the Buttons 24 Motion Gaming 24 Get Coding 25 Resetting the BBC micro:bit 25 Chapter 3 Programming the BBC micro:bit 27 USB Connectivity 27 Drag-and-Drop 29 Automatic Flashing 31 The Code Editor 32 Downloading Your Program 33 About Flash Memory 38 Part II Chapter 4 Programming Languages 41 About Programming Languages 41 The Three Main BBC micro:bit Languages 42 JavaScript Blocks 43 JavaScript 44 Python 45 Comparing Programming Languages 46 Choosing a Programming Language 48 Other Programming Languages 49 Chapter 5 JavaScript Blocks 51 Introducing the JavaScript Blocks Editor 51 Program 1: 'Hello, World!' 54 Loops 57 Program 2: Button Inputs 58 Multiple Buttons 60 Program 3: Touch Inputs 61 Variables 62 Program 4: The Temperature Sensor 65 Formatting the Output 67 Program 5: The Compass Sensor 67 Program 6: The Accelerometer Sensor 70 Delays 73 Reading Raw Accelerometer Data 74 Program 7: The Fruit Catcher Game 76 The Setup 77 The Main Program Loop 78 Condit...