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

Commit 0c56aca

Browse files
authored
Merge pull request #173 from microsoft/users/t-anmah/cpx-library-name-change
changed package import name from cpx to cp
2 parents 4361a23 + ee8ba5c commit 0c56aca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# added compatibility for new import structure in CircuitPython
2+
# https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground/pull/79
3+
4+
from .express import cpx as cp

src/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
# import CPX library
11-
from adafruit_circuitplayground.express import cpx
11+
from adafruit_circuitplayground import cp
1212

1313
while True:
1414
# start your code here

0 commit comments

Comments
 (0)