mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
Fully added gripper, distance, IMU, and display modules
This commit is contained in:
19
Assets/DisplayModule.cs
Normal file
19
Assets/DisplayModule.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class DisplayModule : ModuleBase
|
||||
{
|
||||
public string displayText = "";
|
||||
|
||||
public void SetDisplayText(string text)
|
||||
{
|
||||
displayText = text;
|
||||
SendToDisplayHardware(text);
|
||||
}
|
||||
|
||||
private void SendToDisplayHardware(string text)
|
||||
{
|
||||
// Replace with actual hardware communication logic
|
||||
Debug.Log($"[DisplayModule] Sending display text: {text}");
|
||||
// Example: ControlLibrary.send_display_text(Int32.Parse(moduleID), text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user