Image Segmentation
Fast Print
English
art
3D
3D-Printing
Manufacturing
Firmware
Cuda
Cude-Acceleration
GPU
Instructions to use OpenPeerAI/FastPrint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Fast Print
How to use OpenPeerAI/FastPrint with Fast Print:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
| using System.IO.Ports; | |
| using System.Threading.Tasks; | |
| namespace FastPrint.Printer | |
| { | |
| public class MarlinConnector | |
| { | |
| private SerialPort port; | |
| public MarlinConnector(string portName, int baudRate = 115200) | |
| { | |
| port = new SerialPort(portName, baudRate); | |
| } | |
| public async Task ConnectAsync() | |
| { | |
| if (!port.IsOpen) | |
| port.Open(); | |
| await SendCommandAsync("M115"); // Get firmware info | |
| } | |
| public async Task SendCommandAsync(string gcode) | |
| { | |
| if (port.IsOpen) | |
| await port.BaseStream.WriteAsync(System.Text.Encoding.ASCII.GetBytes(gcode + "\n")); | |
| } | |
| public void Disconnect() | |
| { | |
| if (port.IsOpen) | |
| port.Close(); | |
| } | |
| } | |
| } |