mirror of
https://github.com/pybricks/pybricks-projects.git
synced 2026-07-28 04:06:07 +00:00
all: Add code directive.
This commit is contained in:
@@ -13,6 +13,7 @@ description:
|
||||
make it work smoothly and accurately."
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.additional.main.pdf/17101_A_AutoBuilder.pdf
|
||||
code: "#coding-instructions"
|
||||
---
|
||||
|
||||
# Coding instructions
|
||||
|
||||
@@ -12,6 +12,7 @@ description:
|
||||
"Fan-favorite droid R2-D2 is now Python-powered with Pybricks."
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.additional.main.pdf/75253_X_Artoo.pdf
|
||||
code: "#code"
|
||||
---
|
||||
|
||||
# Code
|
||||
|
||||
@@ -18,6 +18,7 @@ building_instructions:
|
||||
- https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6245924.pdf
|
||||
- https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6245926.pdf
|
||||
- https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6245931.pdf
|
||||
code: "#program"
|
||||
|
||||
---
|
||||
|
||||
@@ -31,9 +32,7 @@ driving:
|
||||
|
||||
Connect the motor to port A and connect the tilt sensor to port B.
|
||||
|
||||
## Coding Instructions
|
||||
|
||||
|
||||
## Program
|
||||
|
||||
This program makes the train drive until it detects a slope of 8 degrees or
|
||||
more. Then it drives back down.
|
||||
|
||||
@@ -11,6 +11,7 @@ description:
|
||||
"Six-wheeled rover with instruments to explore new worlds."
|
||||
building_instructions:
|
||||
local: "exploration-rover.pdf"
|
||||
code: "#program"
|
||||
---
|
||||
|
||||
## Description
|
||||
|
||||
@@ -12,11 +12,10 @@ description:
|
||||
"This master robot is a stoic action hero. It can fire or hammer its way through obstacles and grab items. Builders can be the ultimate commanders, programming it to scan its environment and fire darts if it senses danger. Perfect for guarding your room!"
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.additional.main.pdf/51515_Blast.pdf
|
||||
code: "#program"
|
||||
---
|
||||
|
||||
|
||||
This program requires PyBricks v3 firmware installed on the Inventor Hub.
|
||||
|
||||
## Program
|
||||
The playing instructions for each robot variant are in the docstrings of the corresponding file.
|
||||
|
||||
The code for Blast's basic dance is in `blast-basic.py` as follows:
|
||||
|
||||
@@ -11,12 +11,11 @@ video:
|
||||
description:
|
||||
"The Modular Vehicle Platform gets the job done. Create and code your own remote control and build the M.V.P. into a buggy, a crane, a shooter turret or even a brick-eating truck to pick up LEGO bricks left by the other robots."
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.additional.main.pdf/51515_MVP.pdf
|
||||
external: https://ww.lego.com/cdn/product-assets/product.bi.additional.main.pdf/51515_MVP.pdf
|
||||
code: "#program"
|
||||
---
|
||||
|
||||
|
||||
This program requires PyBricks v3.0 firmware installed on the Inventor Hub.
|
||||
|
||||
## Program
|
||||
The playing instructions for each robot variant are in the docstrings of the corresponding file.
|
||||
|
||||
The code for M.V.P.'s basic drive is in `mvp-basic.py` as follows:
|
||||
|
||||
@@ -12,13 +12,14 @@ description:
|
||||
"The sporty bot is the ultimate athlete. Code it to complete the perfect slam dunk or master a plethora of robot sports: basketball, bowling or soccer – the list goes on and on."
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.additional.main.pdf/51515_Tricky.pdf
|
||||
code: "#programs"
|
||||
---
|
||||
|
||||
|
||||
These programs require Pybricks v3.0 firmware installed on the Inventor Hub.
|
||||
## Programs
|
||||
|
||||
The playing instructions for each robot variant are in the docstrings of the corresponding file.
|
||||
|
||||
|
||||
The code for Tricky's basic dance is in `tricky-basic.py` as follows:
|
||||
|
||||
{% include copy-code.html %}
|
||||
|
||||
@@ -11,6 +11,7 @@ description:
|
||||
"Super fast line following robot with Ackermann steering."
|
||||
building_instructions:
|
||||
local: "steerbot-instructions.pdf"
|
||||
code: "#program"
|
||||
---
|
||||
|
||||
## Description
|
||||
|
||||
@@ -15,14 +15,13 @@ building_instructions:
|
||||
- https://education.lego.com/v3/assets/blt293eea581807678a/blt56a81c75560c9a81/5f8802cbf71916144453a493/supercleaup-bi-pdf-book1of3.pdf
|
||||
- https://education.lego.com/v3/assets/blt293eea581807678a/bltb5e585f94cb4e72b/5f8802e5a302dc0d859a734d/supercleaup-bi-pdf-book2of3.pdf
|
||||
- https://education.lego.com/v3/assets/blt293eea581807678a/bltb8840f08a6d0362b/5f8802dc2792080f7721405c/supercleaup-bi-pdf-book3of3.pdf
|
||||
code: "#program"
|
||||
---
|
||||
|
||||
|
||||
This program is for the Hand-Controlled Grabber in the [Invention Squad: Super Clean-Up](https://education.lego.com/en-us/lessons/prime-invention-squad/super-cleanup) lesson unit.
|
||||
|
||||
The program requires Pybricks v3 firmware installed on the Prime Hub.
|
||||
|
||||
The programming code is as follows:
|
||||
## Program
|
||||
|
||||
{% include copy-code.html %}
|
||||
```python
|
||||
|
||||
@@ -10,6 +10,7 @@ description:
|
||||
starting point for your own programs."
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6314518.pdf
|
||||
code: "#basic-driving-and-steering"
|
||||
---
|
||||
|
||||
# Basic driving and steering
|
||||
|
||||
@@ -9,6 +9,7 @@ description:
|
||||
"This project shows how you can control the truck with your keyboard."
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6314518.pdf
|
||||
code: "#the-remote-control-program"
|
||||
---
|
||||
|
||||
# How it works
|
||||
|
||||
@@ -9,6 +9,7 @@ description:
|
||||
"Make the truck drive around autonomously using sensors."
|
||||
building_instructions:
|
||||
external: https://www.lego.com/cdn/product-assets/product.bi.core.pdf/6314518.pdf
|
||||
code: "#main-program"
|
||||
---
|
||||
|
||||
# Selecting a sensor
|
||||
|
||||
Reference in New Issue
Block a user