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

Commit

Permalink
Set language association and adhere to docstring convention for templ…
Browse files Browse the repository at this point in the history
…ate file (#43)

* Set language association and adhere to docstring convention for template file

* Put docstring summary on first line

Co-Authored-By: Brett Cannon <[email protected]>
  • Loading branch information
jonathanwangg and brettcannon authored Jul 12, 2019
1 parent af1d630 commit 31cf194
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function activate(context: vscode.ExtensionContext) {


vscode.workspace
.openTextDocument({ content: file, language: "en" })
.openTextDocument({ content: file, language: "python" })
.then((template: vscode.TextDocument) => {
vscode.window.showTextDocument(template, 1, false);
}),
Expand Down
13 changes: 7 additions & 6 deletions src/template.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
'''
Save your file as "code.py" or "main.py" to run on the actual device
"""Save your file as "code.py" or "main.py" to run on the actual device.
Getting started with CPX and CircuitPython intro on: https://learn.adafruit.com/circuitpython-made-easy-on-circuit-playground-express/circuit-playground-express-library
Getting started with CPX and CircuitPython intro on:
https://learn.adafruit.com/circuitpython-made-easy-on-circuit-playground-express/circuit-playground-express-library
Find example code for CPX on: https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground/tree/master/examples
'''
Find example code for CPX on:
https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground/tree/master/examples
"""

# import CPX library
from adafruit_circuitplayground.express import cpx

while True:
# start your code here
pass
pass

0 comments on commit 31cf194

Please sign in to comment.