Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 26 additions & 16 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,28 @@ on:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '34 6 * * 0'

# Permissions required by OpenID Connect to access Azure.
permissions:
security-events: write
- cron: '0 19 * * 0'
workflow_dispatch:

jobs:
analyze:
name: Analyze

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: cpp
build-mode: none

# CodeQL runs on ubuntu-latest and windows-latest
runs-on: ubuntu-latest
permissions:
security-events: write
# required to fetch internal or private CodeQL packs
packages: read

strategy:
fail-fast: false
Expand All @@ -43,18 +55,14 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
build-mode: ${{ matrix.build-mode }}
# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# # If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +76,6 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
1 change: 1 addition & 0 deletions compiler/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"newLine": "LF",
"sourceMap": false,
"typeRoots": ["../node_modules/@types"],
"types": [],
"lib": [
"dom",
"dom.iterable",
Expand Down
13 changes: 0 additions & 13 deletions docs/courses.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@

A collection of courses and tutorials built for the @boardname@.

## First lessons with MakeCode and the micro:bit

A sequence of six beginner lessons, ideal for getting started with the micro:bit. Students will learn core computing concepts by making and coding engaging projects.

```codecard
[{
"name": "First Lessons",
"description": "A sequence of lessons from the Micro:bit Educational Foundation that provide a pathway through six projects, ideal for getting started with the micro:bit",
"url":"https://microbit.org/teach/lessons/first-lessons-with-makecode-and-the-microbit",
"imageUrl": "/static/courses/first-lessons.png"
}]
```

## Intro to Computer Science

MakeCode's course for learning Computer Science with the micro:bit. This is a 14 week computer science course for middle school grades 6-8.
Expand Down
13 changes: 8 additions & 5 deletions docs/device/serial.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,19 @@ Unfortunately, using the serial library requires quite a bit of a setup.

### ~ hint

**Windows earlier than 10**
#### Windows earlier than 10

If you are running a Windows version earlier than 10, you must [install a device driver](https://os.mbed.com/docs/latest/tutorials/windows-serial-driver.html) (for the computer to recognize the serial interface of the Calliope mini).

## ~
### ~

Also, if you don't see the serial port as one of your computer's devices, you might need to [update the firmware](/device/firmware) on the @boardname@. Find the device name for the attached serial port in the following instructions for your operating system.

### Windows > Tera Term
## Windows

### Tera Term

* Install the terminal emulator [Tera Term](https://ttssh2.osdn.jp/index.html.en). At the time of this writing, the latest version is 4.88 and can be downloaded [from here](http://en.osdn.jp/frs/redir.php?m=jaist&f=%2Fttssh2%2F63767%2Fteraterm-4.88.exe). Follow the instructions from the installer.
* Install the terminal emulator [Tera Term](https://teratermproject.github.io/index-en.html). The the latest release and can be downloaded [from here](https://github.com/TeraTermProject/teraterm/releases). Scroll down to the "Assets" section and download the release package that is appropriate for your computer. For example, if you have an x64 based processor, click on the one that ends in "x64.exe".

Once both the driver and the terminal emulator are installed, plug in the Calliope mini and wait until the device is fully setup. Then, open TeraTerm.

Expand All @@ -47,7 +50,7 @@ You should be good. Feel free to hit `Setup` > `Save Setup` in the menus to eras

Please note that Windows will assign you a different COM port if you plug in another Calliope mini. If you're juggling between Calliope mini, you'll have to change the COM port every time.

### Windows > Putty
### Putty

If you prefer another terminal emulator (such as [PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/)), here are some instructions.

Expand Down
41 changes: 41 additions & 0 deletions docs/microbit-org/createai.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# CreateAI

Projects to get learners started quickly with AI and machine learning on the micro:bit.

## Projects

```codecard
[{
"name": "AI storytelling friend",
"description": "Use storytelling to introduce AI.",
"url": "https://microbit.org/projects/make-it-code-it/ai-storytelling-friend/",
"imageUrl":"/static/microbit-org/createai/storytelling-friend.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "Simple AI exercise timer",
"description": "Make a smart exercise timer using AI.",
"url": "https://microbit.org/projects/make-it-code-it/simple-ai-exercise-timer/",
"imageUrl":"/static/microbit-org/createai/simple-exercise-timer.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "AI activity timer",
"description": "Use AI to detect and time specific activities.",
"url": "https://microbit.org/projects/make-it-code-it/ai-activity-timer/",
"imageUrl":"/static/microbit-org/createai/activity-timer.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "More about CreateAI",
"description": "Explore AI on and offscreen with tools, resources and more.",
"url": "https://microbit.org/createai/",
"imageUrl":"/static/microbit-org/createai/more-about.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}]
```
49 changes: 49 additions & 0 deletions docs/microbit-org/data-logging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Data Logging Examples

Use the micro:bit’s data logging feature in science and other experiments.

## Projects

```codecard
[{
"name": "Traffic survey data logger",
"description": "Survey traffic, wildlife or anything around you!",
"url": "https://makecode.microbit.org/_gh4CetMLC5i4",
"imageUrl": "/static/microbit-org/data-logging/traffic-survey.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "sharedExample"
}, {
"name": "Kick strength data logger",
"description": "Use data science to improve your sports skills.",
"url": "https://makecode.microbit.org/_drsVdM9dccxq",
"imageUrl": "/static/microbit-org/data-logging/kick-strength.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "sharedExample"
}, {
"name": "Environment data logger",
"description": "Record and study data about the world around you.",
"url": "https://makecode.microbit.org/_WbKetCEgVDX2",
"imageUrl": "/static/microbit-org/data-logging/environment.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "sharedExample"
}, {
"name": "Solar panel experiment",
"description": "Decide where to put a solar panel with your micro:bit.",
"url": "https://makecode.microbit.org/_7L8hXcRUDCPF",
"imageUrl": "/static/microbit-org/data-logging/solar-panel.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "sharedExample"
}, {
"name": "Movement data logger",
"description": "Use data logging to make a better step counter.",
"url": "https://makecode.microbit.org/_6ftECdEohfpb",
"imageUrl": "/static/microbit-org/data-logging/movement.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "sharedExample"
}]
```
71 changes: 71 additions & 0 deletions docs/microbit-org/feature-videos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Introductory micro:bit Feature Videos

Short animated videos to share with learners.

## Videos

```codecard
[{
"name": "Introduction to the BBC micro:bit",
"description": "Meet the BBC micro:bit.",
"label": " ",
"labelClass": "black microbit-ribbon large",
"youTubeId": "u2u7UJSRuko",
"youTubePlaylistId": "PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"imageUrl": "/static/microbit-org/feature-videos/introduction.png"
},
{
"name": "Input and output devices",
"description": "How the BBC micro:bit helps you understand computer input and output devices.",
"label": " ",
"labelClass": "black microbit-ribbon large",
"youTubeId": "NkoS2JXaBuM",
"youTubePlaylistId": "PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"imageUrl": "/static/microbit-org/feature-videos/input-output.png"
},
{
"name": "Processor",
"description": "The processor is the most important part of your BBC micro:bit - watch this video to discover why they are essential parts of any computer, phone or tablet.",
"label": " ",
"labelClass": "black microbit-ribbon large",
"youTubeId": "Y9tk07CzTAA",
"youTubePlaylistId": "PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"imageUrl": "/static/microbit-org/feature-videos/processor.png"
},
{
"name": "LEDs",
"description": "LED lights are perfect for the BBC micro:bit - watch this video to find out why.",
"label": " ",
"labelClass": "black microbit-ribbon large",
"youTubeId": "eRhlaXqT-0w",
"youTubePlaylistId": "PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"imageUrl": "/static/microbit-org/feature-videos/leds.png"
},
{
"name": "Buttons",
"description": "The buttons are probably the first input device you'll use on BBC micro:bit - this video tells you how you can use them. ",
"label": " ",
"labelClass": "black microbit-ribbon large",
"youTubeId": "hnT0qHM3_hQ",
"youTubePlaylistId": "PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"imageUrl": "/static/microbit-org/feature-videos/buttons.png"
},
{
"name": "Accelerometer",
"description": "Like a phone, the micro:bit can sense movement using its accelerometer. This video tells you more about how you can use it.",
"label": " ",
"labelClass": "black microbit-ribbon large",
"youTubeId": "UT35ODxvmS0",
"youTubePlaylistId": "PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"imageUrl": "/static/microbit-org/feature-videos/accelerometer.png"
},
{
"name": "Full playlist",
"description": "Watch videos on all the features of the micro:bit.",
"label": " ",
"labelClass": "black microbit-ribbon large",
"url": "https://www.youtube.com/playlist?list=PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"youTubePlaylistId": "PLEo0hMrjdofusveMscRFN9FeqKzDBzuXr",
"imageUrl": "/static/microbit-org/feature-videos/full-playlist.png"
}]
```
65 changes: 65 additions & 0 deletions docs/microbit-org/first-lessons.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# First Lessons with MakeCode and the micro:bit

Six projects featured in our starter [lessons](https://microbit.org/teach/lessons/first-lessons-with-makecode-and-the-microbit/) and companion [PD course](https://microbit.thinkific.com/courses/first-lessons-with-makecode-and-the-micro-bit).

## Lessons

```codecard
[{
"name": "First lessons overview",
"description": "A sequence of lessons from the Micro:bit Educational Foundation that provide a pathway through six projects, ideal for getting started with the micro:bit",
"url":"https://microbit.org/teach/lessons/first-lessons-with-makecode-and-the-microbit",
"imageUrl": "/static/microbit-org/first-lessons/overview.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "Name badge",
"description": "Students create their first programs and transfer them to their micro:bits.",
"url": "https://microbit.org/teach/lessons/name-badge/",
"imageUrl": "/static/microbit-org/first-lessons/name-badge.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "Beating heart",
"description": "Create a simple animation to learn about sequence and simple loops.",
"url": "https://microbit.org/teach/lessons/beating-heart/",
"imageUrl": "/static/microbit-org/first-lessons/beating-heart.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "Emotion badge",
"description": "Start learning about inputs and outputs using buttons and icons on the display.",
"url": "https://microbit.org/teach/lessons/emotion-badge/",
"imageUrl": "/static/microbit-org/first-lessons/emotion-badge.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "Step counter",
"description": "Introduce variables to track your step count and begin to use the accelerometer input.",
"url": "https://microbit.org/teach/lessons/step-counter/",
"imageUrl": "/static/microbit-org/first-lessons/step-counter.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "Nightlight",
"description": "Make an automatic nightlight and discover how logic, conditionals and inputs and outputs combine to make a simple control system.",
"url": "https://microbit.org/teach/lessons/nightlight/",
"imageUrl": "/static/microbit-org/first-lessons/nightlight.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}, {
"name": "Rock, paper, scissors",
"description": "Combine skills from the previous lessons to turn your micro:bit into an electronic simulation of a popular game of chance.",
"url": "https://microbit.org/teach/lessons/rock-paper-scissors/",
"imageUrl": "/static/microbit-org/first-lessons/rock-paper-scissors.png",
"label": " ",
"labelClass": "black microbit-ribbon large",
"cardType": "link"
}]
```
Loading
Loading