/ Jupyter_USB / MCP2221_Test.ipynb
MCP2221_Test.ipynb
1 { 2 "cells": [ 3 { 4 "cell_type": "code", 5 "execution_count": null, 6 "metadata": {}, 7 "outputs": [], 8 "source": [ 9 "# Python Software Package Installation\n", 10 "import sys\n", 11 "!{sys.executable} -m pip install adafruit-blinka adafruit-circuitpython-msa301 hidapi" 12 ] 13 }, 14 { 15 "cell_type": "code", 16 "execution_count": null, 17 "metadata": {}, 18 "outputs": [], 19 "source": [ 20 "# Set an Environment Variable so Adafruit Blinka knows we're using the MCP2221\n", 21 "import os\n", 22 "os.environ[\"BLINKA_MCP2221\"] = \"1\"" 23 ] 24 }, 25 { 26 "cell_type": "code", 27 "execution_count": null, 28 "metadata": {}, 29 "outputs": [], 30 "source": [ 31 "# Attempt to import a CircuitPython Module\n", 32 "import board" 33 ] 34 } 35 ], 36 "metadata": { 37 "kernelspec": { 38 "display_name": "Python 3", 39 "language": "python", 40 "name": "python3" 41 }, 42 "language_info": { 43 "codemirror_mode": { 44 "name": "ipython", 45 "version": 3 46 }, 47 "file_extension": ".py", 48 "mimetype": "text/x-python", 49 "name": "python", 50 "nbconvert_exporter": "python", 51 "pygments_lexer": "ipython3", 52 "version": "3.7.4" 53 } 54 }, 55 "nbformat": 4, 56 "nbformat_minor": 2 57 }