Description
- Using MakeCode editor
- Display text on the display, one character at a time
Display numbers on the display, one number at a time - Display text on the display, loop it over and over again
- Display numbers on the display, loop it over and over again
- Pauses the program for a number of milliseconds specified
- Displaying icons
Chapter Goal: This chapter presents how to display images and control LEDs on the micro: bit display. First, it shows how to display the built-in images. Then, it shows how to create custom images.
- Display built-in images
- Creating an image
- Creating a double-sized image
- Images offsetting
- Scrolling images
- Animating series of images
- Creating a flashing effect
- Stopping animation
- Displaying arrows
- Plotting a LED on the display
- Unpotting a LED on the display
- Toggling a LED
- Getting the state of the specified LED
- Displaying a vertical bar graph
- Clearing screen
- Plotting a LED on the screen with specified brightness
- Changing brightness of a LED
- Getting the brightness of a LED
- Turning on or off the display
- Using built-in buttons as inputs
- Using external buttons
- Connecting LEDs
- Controlling LEDs
- Using potentiometer to control the brightness of a LED
- Mapping values
- Configuring PWM of the analog output
- Controlling servos
- Repeating a thing for specified number of times
- Run a sequence of actions while a condition is met
- If a value is true, then do some statements
- Check whether both inputs are equal each other
- Check whether both inputs are not equal each other
- Check whether both inputs true
- Check whether at least of the inputs is true
- Inverse an input
- Adding numbers
- Subtracting numbers
- Multiplying numbers
- Dividing numbers
- Generating random numbers
- Generating true and false randomly
- Finding remainder
- Finding minimum and maximum value
- Finding absolute value of a number
- Converting ASCII characters to text
Author: Pradeeka Seneviratne
Publisher: Apress
Published: 07/02/2019
Pages: 352
Binding Type: Paperback
Weight: 1.16lbs
Size: 9.21h x 6.14w x 0.78d
ISBN13: 9781484249123
ISBN10: 1484249127
BISAC Categories:
- Computers | Hardware | General
- Computers | Programming | Games
- Computers | Computer Science
About the Author
Pradeeka Seneviratne is a software engineer with over 10 years of experience in computer programming and systems design. He is an expert in the development of Arduino and Raspberry Pi-based embedded systems and is currently a full-time embedded software engineer working with embedded systems and highly scalable technologies. Previously, Pradeeka worked as a software engineer for several IT infrastructure and technology servicing companies.
Pradeeka is an author of many books: Building Arduino PLCs [Apress], Internet of Things with Arduino Blueprints [Packt], Raspberry Pi 3 Projects for Java Programmers [Packt], Beginning BBC micro: bit [Apress], and Hands-on Internet of Things with Blynk [Packt].