None Notebook

This notebook contains material from cbe61622; content is available on Github.

< 2.2 Coding for Particle | Contents | 2.4 Ultrasonic Distance Ranger >

Open in Colab

Download

2.3 Particle Command Line Interface (CLI)

This notebook demonstrates the use of the Particle command line interface to

This notebook is designed to be opened and run on Google Colab. Several modifications will be needed to run in another environment.

2.3.1 Particle CLI

2.3.1.1 Installation

2.3.1.2 Utility functions

2.3.1.3 Login to Particle

2.3.1.4 Select a device

The following cell downloads a list of all user devices and creates a list of device names. Here we choose the first name in the list for the rest of this notebook. If this is not the device to be used, then modify this cell accordingly.

2.3.2 Project: Timer display

To demonstrate use of the Paricle CLI, for this project we will create a simple timer display using the Grove 4-Digit Display that is shipped with the Argon Starter Kit available from Particle.io. The goal of the project is to display time since start device startup measure in seconds. The display will show seconds to two decimal digits for up to 100 seconds. The timer and display will roll over after 100 seconds.

2.3.2.1 Particle Argon

2.3.2.2 Grove 4-Digit Display

Grove 4-Digit Display

Documentation

2.3.2.3 Grove Shield FeeatherWing

Connect the Grove 4-digit display to connector D2 on the Grove Shield FeatherWing adapater.

2.3.2.4 Create Project

2.3.2.5 Change working directory

The Particle CLI assumes one is working in the top project directory.

2.3.2.6 Add relevant libraries

2.3.2.7 Create source file

2.3.2.8 Compiling

2.3.2.9 Flash firmware

< 2.2 Coding for Particle | Contents | 2.4 Ultrasonic Distance Ranger >

Open in Colab

Download