Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #173 from microsoft/users/t-anmah/cpx-library-name…
Browse files Browse the repository at this point in the history
…-change

changed package import name from cpx to cp
  • Loading branch information
andreamah authored Jan 22, 2020
2 parents 4361a23 + ee8ba5c commit 0c56aca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/adafruit_circuitplayground/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# added compatibility for new import structure in CircuitPython
# https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground/pull/79

from .express import cpx as cp
2 changes: 1 addition & 1 deletion src/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

# import CPX library
from adafruit_circuitplayground.express import cpx
from adafruit_circuitplayground import cp

while True:
# start your code here
Expand Down

0 comments on commit 0c56aca

Please sign in to comment.