CupCarbon Klines Tutorials

Complete Guide for Installation and Usage

Download CupCarbon Klines

Table of Contents

🚀 Installation Guide

Complete installation instructions are available at:

View Installation Guide

⌨️ CupCarbon Commands

To send commands from Python to CupCarbon:

print("CupCarbon command", flush=True)

Helper Function

def cup(com): print(com, flush=True)
1. print

Print any message on the executing device:

cup("print Hello World!")
2. mark/unmark

Mark or unmark the executing device:

cup("mark") cup("unmark")
3. move

Move the executing device to a GPS location:

cup("move 50.002 21.344")
4. get information

Get device information:

# Get device ID cup("getid") id = input() # Get device name cup("getname") name = input() # Get device location cup("getxy") location = input() # Get X coordinate cup("getx") x = input() # Get Y coordinate cup("gety") y = input()

Example: Alternating Display

import time def cup(com): print(com, flush=True) while True: cup("print Hello ") time.sleep(1) cup("print World!") time.sleep(1)

📡 MQTT for IoT Projects

Install MQTT for Python:

pip install paho-mqtt

or

pip3 install paho-mqtt

🎉 Now you can use CupCarbon, enjoy!