
My Code, Our Program - LEGO® Education
Use My Blocks to write organized programs that'll help the Advanced Driving Base perform quickly and reliably.
What the gyroscope detects can be changed between “front”, “back”, “top”, “bottom”, “left side” or “right side”. When the gyroscope inside the Spike hub detects that the Spike hub has been “shaken”, all code below this block will run sequentially from top to bottom.
To download additional programming blocks, click on the icon with blocks and a plus sign at the bottom left of the SPIKE Prime App and add the Extensions. There are some additional Weather, Display, and Datalogging blocks not included in this guide.
Pybricks
Pybricks is Python and Block coding for smart LEGO® hubs. Run programs directly on the hub, and get full control of your motors and sensors. Learn more. Complete compatibility. Pybricks runs on LEGO® BOOST, City, Technic, MINDSTORMS®, and SPIKE®. You can code using Windows, Mac, Linux, Chromebook, and Android. Learn more. Now with block coding!
You can explore these additional blocks in the LEGO® Education SPIKETM App, or right-click on the block to go directly to its help section: Sound Blocks – Add different sounds, effects, and music to the program.
LEGO Spike Prime – “Translate” Programming Blocks into Python Code
Jan 9, 2021 · In my previous post, I introduced how to set a mission for LEGO Spike Prime and implement the task with LEGO Spike programming blocks. As I mentioned before, Lego Spike Prime supports MicroPython pretty well. Most of the programming blocks could find corresponding Python functions.
SPIKE™ Essential - LEGO Education
This resource has six tutorials to introduce students to the Hub, the motors, the light matrix, the color sensor, the gyro sensor, and word blocks--all within the 5E lesson design.
Coding with the LEGO® Education SPIKE™ Prime app
The coding language for LEGO® Education SPIKE™ Prime has the same look and feel as Scratch, the industry standard for block coding. Its familiar drag and drop feature makes it easy for all skill levels. While the two languages are similar, you can't use programs created in the SPIKE Prime App with Scratch 3.0, or vice versa.
The SPIKE App is a student-facing app that can be used with both SPIKE Essential and SPIKE Prime to follow and complete lessons. The app includes “getting-started” materials, lessons, building instructions, and a series of coding experiences that progress from icon- and word-block coding based on Scratch to text-based coding based on Python.
Sample Code/Projects Files for Lego Spike Prime Python V3 ... - GitHub
Code/Projects Files for Lego Spike Prime Python V3 released in 2023. Lego education only provided the word block code for the lessions. This project converted all the word block code to python using the V3 API released in 2023.
- Some results have been removed