Want to create interactive content? It’s easy in Genially!
Get started free
Compu 4 - Code Blocks
Josep Romagosa Llord
Created on January 6, 2024
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Math Lesson Plan
View
Primary Unit Plan 2
View
Animated Chalkboard Learning Unit
View
Business Learning Unit
View
Corporate Signature Learning Unit
View
Code Training Unit
View
History Unit plan
Transcript
Code Blocks
Resources
Start
Microbit sensors
Code blocks for reading the light level and temperature in the room
Use case: Shows fire if the temperature is high and a snowflake if its cold.
Use case: Shows a moon if it's dark and a sun if it's daylight.
Led strip
Code blocks for controlling the led strip
Use case: Turn the whole led strip to blue.
Required extension: Neopixel
Use case: Sets the led strip of 30 leds to the pin 0.
Led strip
Code blocks for controlling the led strip
Use case: Turn the led strip into a rainbown pattern.
Use case: Split the led strip into 3 ranges of 10 leads to print Mexico's flag.
Led strip
Code blocks for controlling the led strip
Use case: Shifts to the right by 1 led when pressing B.
Use case: Shifts to the right by 1 led when pressing B.
Gesture
Code blocks for detecting user's gestures
Use case: Shows an arrow pointing to the direction of the user's gesture.
Required extension: Grove
Digital Pin
Code blocks for reading and writing on the Pins
Use case: Turn off a Led light connected to Pin 0 when pressing button A.
Use case: Show a check/cross whether the movement sensor connected to pin 0 is detecting movement or not.
Use case: Turn on a Led light connected to Pin 0 when pressing button B.
Radio
Code blocks for sending and receiving signal between 2 microbits
Received the Signal
Sends the Signal
Receiver Microbit
Sender Microbit
RADIO CHANNEL