A TurboWarp extension for controlling Line-us drawing robots. This is a port of the original ScratchX extension to work with TurboWarp's modern extension system.
- Connect to Line-us drawing robots via WebSocket
- Control pen position (up/down)
- Move to specific coordinates
- Set drawing speed
- Home the robot
- Send custom G-code commands
Due to browser security restrictions (mixed content policy), the Line-us extension requires TurboWarp Desktop to connect to your Line-us robot.
- Download TurboWarp Desktop
- Install and open TurboWarp Desktop
- Click the extension button (+)
- Choose "Custom Extension"
- Load the
line-us-extension.jsfile
- Open TurboWarp
- Click the extension button (+)
- Choose "Custom Extension"
- Load the
line-us-extension.jsfile ⚠️ Note: Connection will fail due to HTTPS/WebSocket security restrictions
- Connect your Line-us to WiFi
- Note the IP address (check your router or use Line-us app)
- Ensure your computer is on the same network
The extension provides blocks for:
- Connect to Line-us [hostname] - Establish connection (use IP address like
192.168.1.100) - Pen [up/down] - Control pen position
- Move to X[x] Y[y] - Move to coordinates (Scratch units: 0,0 = center)
- Go to home position - Return to home
- Set drawing speed to [speed] - Control movement speed (Slow/Normal/Fast)
- Send GCode [command] - Send raw G-code commands
When [green flag] clicked
Connect to Line-us [192.168.1.100]
Pen [down]
Move to X[50] Y[50]
Move to X[-50] Y[50]
Move to X[-50] Y[-50]
Move to X[50] Y[-50]
Move to X[50] Y[50]
Pen [up]
Go to home position
This extension is designed for TurboWarp's unsandboxed extension environment to enable WebSocket connectivity.
Same as original ScratchX extension.