Major site overhaul: resources hub, content migration, new blog posts, forms
- Redesign /resources as sectioned hub with category pages - Migrate 645 Squarespace CDN images to local /images/content/ - Create 9 new news/blog posts with event photos - Fix blog post slugs (rename gibberish filenames) - Rename Design Blog to Design Blogs across site - Remove education page, replace with Platform in nav - Redesign rover repair request form with dynamic rover entries - Add school search combobox to contact, store, and repair forms - Extract shared KNOWN_SCHOOLS data - Make /rover-expansion-3d-printing dynamically pull from MDX - Add related resources sections to product pages - Fix homepage broken /quote links to /store - Store page: sample kit cards, inline quote builder, mailing list opt-in
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Getting Setup with the Micromelon Python Module "
|
||||
date: "2022-11-16"
|
||||
categories: ["All", "Guides"]
|
||||
categories: ["All", "Getting Started"]
|
||||
tags: ["Python", "Guide"]
|
||||
excerpt: "Learn how to start programming the Rover with Python!"
|
||||
featuredImage: "/images/resources/getting-started-with-the-python-module.png"
|
||||
@@ -15,19 +15,15 @@ The Micromelon python module has been designed to allow you to interface with th
|
||||
|
||||
An integrated development environment (IDE) is a program that allows us to easily write and edit code. Different IDEs allow us to program in different programming languages. Python files can be made and edited in basically all IDEs, then run separately inside the terminal. There are several IDE choices which have tools for creating and running python code. For the purposes of this guide, we will discuss the two most popular Python IDEs: VS Code and Pycharm.
|
||||
|
||||
You can find guides to setup VS Code [here](/resources/install-guide-vs-code)** **or PyCharm [here](/resources/install-guide-pycharm). These guides will take you through the process of installing the IDE and the Micromelon Python Module.
|
||||
You can find guides to setup VS Code [here](/resources/install-guide-vs-code)** ** or PyCharm [here](/resources/install-guide-pycharm). These guides will take you through the process of installing the IDE and the Micromelon Python Module.
|
||||
|
||||

|
||||

|
||||
|
||||
#### **Guide: How To Install VS Code**
|
||||
#### **Guide: How To Install VS Code **[** READ MORE**](/resources/install-guide-vs-code)
|
||||
|
||||
[**READ MORE**](/resources/install-guide-vs-code)
|
||||

|
||||
|
||||

|
||||
|
||||
#### **Guide: How To Install PyCharm**
|
||||
|
||||
[**READ MORE**](/resources/install-guide-pycharm)
|
||||
#### **Guide: How To Install PyCharm **[** READ MORE**](/resources/install-guide-pycharm)
|
||||
|
||||
## Your First Program using the Micromelon Python Module
|
||||
|
||||
@@ -53,9 +49,7 @@ rc.end()
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
`We will now breakdown the code line-by-line to help you understand what the functions and classes do.`
|
||||
```
|
||||
We will now breakdown the code line-by-line to help you understand what the functions and classes do.
|
||||
|
||||
This line imports the Micromelon Module alongside all its functions and classes making them available for use in your code.
|
||||
|
||||
@@ -101,7 +95,7 @@ rc.end()
|
||||
|
||||
**Using the Ultrasonic Sensor and Motors**
|
||||
|
||||

|
||||

|
||||
|
||||
#### Activity: Puppy Bot
|
||||
|
||||
@@ -171,7 +165,7 @@ else:
|
||||
|
||||
**Using The Colour Sensor, Sounds and Display**
|
||||
|
||||

|
||||

|
||||
|
||||
#### Activity: Random Bug Bot 2
|
||||
|
||||
@@ -276,9 +270,9 @@ The following code snippet uses a Python function called “input”, which will
|
||||
|
||||
You can expand your code to add other functionality to the Rover based on a user’s commands from the input function.
|
||||
|
||||
**Note: **If you are using VS Code, you can use the short cut “Ctrl + F5” to open the console window, then click **TERMINAL** to select the terminal pane. The terminal pane is where our prompts will be printed.
|
||||
**Note:** If you are using VS Code, you can use the short cut “Ctrl + F5” to open the console window, then click** TERMINAL** to select the terminal pane. The terminal pane is where our prompts will be printed.
|
||||
|
||||

|
||||

|
||||
|
||||
VS Code Terminal Window
|
||||
|
||||
@@ -365,115 +359,3 @@ This section of the code compares the user entered command against several prede
|
||||
```
|
||||
|
||||
Now it’s time to try it out yourself! See what amazing things you can do with the combined power of Python and the Micromelon Rover. Why not try doing some of the other activities on our website yourself.
|
||||
|
||||
### Related Posts
|
||||
|
||||
Resources
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[Creating A Sumo Unit For Your Digital Technologies Class](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
How to run a sumo unit in your digital technologies classroom.
|
||||
|
||||
[Read More →](/resources/creating-a-sumo-unit)
|
||||
|
||||
[All](/resources?category=All)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[The Ultrasonic Sensor](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
Learn all about the ultrasonic sensor!
|
||||
|
||||
[Read More →](/resources/ultrasonic-sensor)
|
||||
|
||||
[All](/resources?category=All), [Guides](/resources?category=Guides)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
[Case Study: Year 7 Digital Tech at St Peters Lutheran College](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
See how Meg Foley at St Peters conducted a challenge for their Year 7s using Micromelon.
|
||||
|
||||
[Read More →](/resources/year-7-digital-tech-at-st-peters)
|
||||
|
||||
[All](/resources?category=All), [Customer Stories](/resources?category=Customer+Stories)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/robot-simulator)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[Getting Started With The Robot Simulator](/resources/robot-simulator)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
How to get started with the Micromelon Robot Simulator.
|
||||
|
||||
[Read More →](/resources/robot-simulator)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/getting-started-with-the-micromelon-rover)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[Getting Started With The Micromelon Rover](/resources/getting-started-with-the-micromelon-rover)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
Crash course on basic rover function, how and what to program and starter activities to attempt.
|
||||
|
||||
[Read More →](/resources/getting-started-with-the-micromelon-rover)
|
||||
|
||||
[All](/resources?category=All), [Getting Started](/resources?category=Getting+Started)
|
||||
|
||||
[
|
||||
|
||||

|
||||
|
||||
](/resources/prison-escape)
|
||||
|
||||
[Activities](/resources?category=Activities), [All](/resources?category=All)
|
||||
|
||||
[Activity: Prison Escape](/resources/prison-escape)
|
||||
|
||||
[Activities](/resources?category=Activities), [All](/resources?category=All)
|
||||
|
||||
Learn branching and iteration using the colour sensors and motors.
|
||||
|
||||
[Read More →](/resources/prison-escape)
|
||||
|
||||
[Activities](/resources?category=Activities), [All](/resources?category=All)
|
||||
|
||||
Reference in New Issue
Block a user