Skip to content

Commit 6fbde71

Browse files
committed
working-ish
1 parent ce75969 commit 6fbde71

File tree

3 files changed

+308
-89
lines changed

3 files changed

+308
-89
lines changed

code.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""Example code"""
2+
3+
from server import CubeServer, Text
4+
5+
print("Connecting to the server...")
6+
connection = CubeServer()
7+
print("Connected!")
8+
9+
connection.post(Text("Test from CircuitPython!"))
10+
11+
print("Getting status:")
12+
print(connection.get_status())

package.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
zip -r cubeserver-api-circuitpython.zip . 2>&1 > /dev/null
4+
echo cubeserver-api-circuitpython.zip

0 commit comments

Comments
 (0)