Getting Started. With. Circuit Python

Similar documents
Circuit Playground Express: Piano in the Key of Lime

Using the Android CircuitPython Editor

Adafruit Trinket M0. Created by lady ada. Last updated on :23:09 PM UTC

Adafruit Trinket M0. Created by lady ada. Last updated on :11:41 AM UTC

Introducing Adafruit ItsyBitsy M4

Adafruit Gemma M0. Created by lady ada. Last updated on :56:58 PM UTC

Adafruit Gemma M0. Created by lady ada. Last updated on :05:57 PM UTC

CPU Temperature Logging with CircuitPython

Adafruit Feather M4 Express

MakeCode. Created by Peli de Halleux. Last updated on :29:54 AM UTC

CircuitPython Made Easy on Circuit Playground Express

Adafruit Circuit Playground Express

CircuitPython with Jupyter Notebooks

FruitBox Sequencer: Musically Delicious Step Pattern Generator

Grand Central Soundboard in Ten Minutes Created by Mike Barela. Last updated on :11:24 PM UTC

Circuit Playground Firmata

Make It Log. Created by Mike Barela. Last updated on :10:59 PM UTC

CircuitPython on the nrf52

Introducing the Adafruit Grand Central M4 Express

Adafruit Feather nrf52840 Express

Quick Start Guide for mbed enabling Freescale FRDM-KL25z Freedom board

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

CircuitPlayground Morse Code Flasher

Introducting Itsy Bitsy 32u4

22080 IoT2 Appendix B: Get Started with Arduino IDE & ExpLoRer

Make It Change: Potentiometers

These instructions were adapted from Arduino: Installing Standard Firmata which is licensed under Attribution- NonCommercial-ShareAlike 2.

Python is available at: Why Python is awesome:

Working Outside the Lab

Arduino Micro Breadboard Laboratory Interface Processor (Micro BLIP) User Manual

A Logger for CircuitPython Created by Dave Astels. Last updated on :32:17 PM UTC

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Common Git Commands. Git Crash Course. Teon Banek April 7, Teon Banek (TakeLab) Common Git Commands TakeLab 1 / 18

ONE-TOUCH BUTTON CAMERA SKU: B3000

Eclipse CDT Tutorial. Eclipse CDT Homepage: Tutorial written by: James D Aniello

Proper Debugging of ATSAMD21 Processors

MicroPython Basics: Load Files & Run Code

Wireless Network Adapter Needs Reset Windows 7 Not Working

Perfect Pitch Machine

CS Prof J.P.Morrison

Hacking Ikea Lamps with Circuit Playground Express

EV3Dev Lessons. Introduction to EV3Dev: Setup with Python

MediaTek LinkIt Smart 7688 Get Started Guide

Gooligum Electronics 2015

Adafruit Gemma M0. Created by lady ada. Last updated on :08:13 PM UTC

Xcode Setup. Setup. 1. Copy your files. 2. Install X Code

How to use Arduino Uno

Set up and use your Powerbeats 3 Wireless earphones

What is a Flash Drive?

Peerless Drive System User's Manual

Wunderbar upgrade to Conrad Connect firmware and onboarding manual

Some Linux (Unix) Commands that might help you in ENSC351

SILVER WATCH WITH NIGHT VISION

Phantom Mouse Jiggler

Circuit Playground Hourglass

QUICK START GUIDE. Section 6: MAC OSX 1. USB DRIVER INSTALLATION

ARDUINO YÚN Code: A000008

DENSITRON USB KIT HARDWARE AND SOFTWARE MANUAL. Copyright 2006 DENSITRON TECHNOLOGIES plc. All rights reserved. Proprietary Data

Getting Started with Python and the PyCharm IDE

Lesson Seven: Holding Gestures

LESSON 8 COPYING SELECTIONS

VRSLT: Long Duration Voice Recorder

Flow Control: Branches and loops

ipod Tutorial Includes lessons on transferring music to ipod, playing music, and storing files on ipod

CHIPS Newsletter Vol 5 - Yahoo! Mail. Official Newsletter of

Arduino IDE Friday, 26 October 2018

PYTHON YEAR 10 RESOURCE. Practical 01: Printing to the Shell KS3. Integrated Development Environment

MODERN DIGITAL CLOCK HIDDEN CAMERA SKU: MiniClockDeluxe

INSTALLING THE PS3 XBOX READY SOFTWARE:

Launch Deck Trellis M4

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer

USB CAMSTICK 32GB SKU: CAMSTICKUSB

EECS 1710 SETTING UP A VIRTUAL MACHINE (for EECS labs)

Blackhawk USB560v2 Operating Mode Details and Instructions

Creating Great Guides for the Adafruit Learning System

CodeDynamics 2018 Release Notes

MagicStar MP3 USB Flash Drive User Manual

RedBoard Hookup Guide

C++ Developer Survey "Lite": C++ and Cloud

How does PyCharm match up against competing tools?

ECGR 4101/5101, Fall 2016: Lab 1 First Embedded Systems Project Learning Objectives:

Linksys WRT54G v5.0 & 5.1 & 6.0

Introduction to Python (All the Basic Stuff)

CSCE 436/836: Embedded Systems Lab 1b: Hoverboard Programming Introduction

Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio

CircuitPython 101: Working with Lists, Iterators and Generators

Building your own special-purpose embedded system gadget.

Adventure Time Coffee Cup Lamp with MakeCode

Super USB. User Manual. 2007, March

Adafruit Feather 32u4 Basic Proto

PHOTOSWITCH Distance Measurement Sensor

10/100/1000Mbps PCI Gigabit Ethernet Adapter

Intel Edison Tutorial: Introduction to Vim 1

Take Command Configuring pppd in Linux, Part I

S32K148 EVB QUICK START GUIDE REV1 APPLIES FOR: S32K148 EVB (SCH REV A/B) EXTERNAL USE

PRO 1080P COVERT SPY PEN QUICK START GUIDE

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

USB DIGITAL VOICE RECORDING PEN IN GOLD

Digispark DIY: the Smallest USB Arduino

Transcription:

Getting Started With Circuit Python ea e ommons BY-SA 4.0 L en e @Rasp dd Rasp dd. om

Getting Started Page 2 What is circuitpython? CircuitPython is designed to make it easier to program microcontroller boards while experimenting and learning. with CircuitPython has never because there is not any additional software to be downloaded. Once you have set your Circuit playground Express (CPX) up, open your favourite text/coding editor and start coding!(if you don't have a favourite editor, you can find some recommended editors at the end of this guide) CircuitPython is based on Python, which is a high-level programming language which is being taught in schools and universities. Python is designed to be easy to read, write and maintain. Python makes it easy to reuse code in other projects through modules and packages. Python is an open source programming language which means it is free for anyone to use or modify. CircuitPython takes Python and adds hardware support. If you are already familiar with coding in Python, you can take that knowledge and apply it to CircuitPython.

Page 3 Key features Get up and running quickly - create/edit a file. Save the file and it runs on the Circuit Playground Express immediately. The code is easily updated - code lives on the Circuit Playground Express making it easy to edit at any time. Serial console and REPL - allows live feedback from your code/makes it easy to debug your code. Installing/Updating 1. Download the latest version of CircuitPython for the Circuit Playground Express: h ps:// hub. om/ada u / u p hon/ e eases 2. Locate the correct file. Should be named something like adafruit-circuitpython-circuitplayground_express-2.x. x.uf2 3. Click on the file to download it to your computer.

Getting Started Page 4 Installing/Updating 4. Connect your Circuit Playground Express to your computer using a Micro USB cable. 5. Press the reset button twice to enter the bootloader mode. If pressing the reset button twice doesn t work press the reset button once. When you're in Bootloader mode all the neopixels turn green (see image below) and a new drive will appear in your file manager called CPLAYBOOT. 6. Drag the file that was downloaded to the CPLAYBOOT drive. Once the file has finished loading on the Circuit Playground Express, the CPLAYBOOT drive will disappear and be replaced with a new drive called CIRCUITPY.

Page 5 Creating code 1. Open your favourite text/code editor. I recommend using Mu. 2. Create a new file. 3. Type the following code: mpo boa d mpo d a o mpo me ed d a o.d a InOu (boa d.d13) ed.d e on d a o.d e on.output wh e T ue: ed. a ue T ue me.s eep(0.5) ed. a ue Fa se me.s eep(0.5) 4. Save your code as code.py in the CIRCUITPY drive. You should now see a red LED blinking on and off once per second.

Page 6 Creating code Everytime you edit and save your code the Circuit Playground Express detects this and automatically runs your updated code, without you having to reset or unplug the board. NOTE: You must wait until the files have finished saving before disconnecting your board. This can take up to 30 seconds on Linux and up to 90 seconds on Windows. Mac does not seem to have this problem. Also, CircuitPython looks for certain code files on the board to run these are: code.txt, code.py, main.txt and main.py. Recommended Editors Mu - Available on Mac, Windows and Linux Emacs - Available on Mac, Windows and Linux vim/vi - Available on Mac and Linux Sublime Text - Available on Mac, Windows and Linux PyCharm IDE (with safe write turned on) - Available on Mac, Windows and Linux

Page 7 Recommended Editors Atom (with Circuit Playground force to drive package installed) - Available on Mac, Windows and Linux Visual Studio Code - Available on Mac, Windows and Linux gedit - Available on Linux Challenge Why not try and change the time that the code pauses for.