Giter Club home page Giter Club logo

pyohio_2018_cp's Introduction

PyOhio 2018 Welcome to CircuitPython Tutorial

The following instructions walk through setup needed to complete this tutorial.

Setup

For this tutorial, participants will want to install Mu editor.

To install Mu editor on Mac or Windows:

Windows users may install Mu from here.

Mac users may install Mu from here.

To install Mu editor on Linux x86:

Linux users must be running Python 3.6 or newer. Install by running sudo apt install python3. Then, install pip3 by running sudo apt install python3-pip.

Next, create a virtual environment: python3.6 -m venv pyohiocp. Follow the instructions to install venv if it is not already installed. To activate the virtual environment, run source ~/pyohiocp/bin/activate. Once inside the virtual environment (pyohiocp), install Mu by running pip3 install mu-editor.

Linux users must add their user to the dialout group to access the serial console output. From the command line, run nano /etc/group. Find the line with dialout: and add your user to the end of the line, after a comma with no space, i.e. dialout:foo,your_user. Then, log out of the user and log back in for the change to take affect.

Running Mu editor

To run Mu on Windows, double-click the icon.

To run Mu on Mac, double-click the icon in the Applications folder.

To run Mu on Linux, from inside the virtual environment, type python3 -m mu into the command line.

Inside Mu editor

Once Mu is opened, it will present a list of options. For this tutorial, choose "Adafruit CircuitPython".

If there is no CircuitPython compatible board plugged in when the editor is opened, there will be a dialog box that starts with "Could not find an attached Adafruit CircuitPython device". This is normal.

Code for Tutorial

This repo contains all the code used in the tutorial. To access it during the tutorial, you may view it on the web as you follow along. You may wish to have the files available locally. To do this, install git and clone the repo to your machine using git clone https://github.com/kattni/pyohio_2018_cp to create a directory containing the contents of the repo.

pyohio_2018_cp's People

Contributors

kattni avatar craigmaloney avatar kojoidrissa avatar

Stargazers

d avatar Denise Williams avatar Justin avatar Russ Herrold avatar Damien Calloway avatar Jesse Mathews avatar Gwendolyn Faraday avatar

Watchers

Russ Herrold avatar James Cloos avatar  avatar Bruno Martins avatar

pyohio_2018_cp's Issues

pip3 install --user mu-editor

I used pip3 install --user mu-editor, which installs it in the user's homedir. I didn't ned a virtualenv. Would you consider that to be easier?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.