Uduino.ino is the only one Unity recognises

Create issue
Issue #9 resolved
Former user created an issue

unity 2017.2.0f3 Uduino 1.4.3 Pretty much what the title says. None of the other .ino work for me except Uduino.ino.

In ButtonTrigger.unity with corresponding .ino:

The object uduinoButton cannot be found. Are you sure it's connected and correctly detected ? UnityEngine.Debug:LogWarning(Object) Uduino.Log:Warning(Object) (at Assets/Uduino/Scripts/UduinoDebug.cs:18) Uduino.UduinoManager:UduinoTargetExists(String) (at Assets/Uduino/Scripts/UduinoManager.cs:1059) Uduino.UduinoManager:InitAutoRead() (at Assets/Uduino/Scripts/UduinoManager.cs:985) Uduino.UduinoManager:AlwaysRead(String, Action`1) (at Assets/Uduino/Scripts/UduinoManager.cs:977) ButtonTrigger:Awake() (at Assets/Uduino/Examples/Advanced/ButtonTrigger/ButtonTrigger.cs:17)


Impossible to get name on <color=#2196F3>[COM5]</color>. Closing. UnityEngine.Debug:LogWarning(Object) Uduino.Log:Warning(Object) (at Assets/Uduino/Scripts/UduinoDebug.cs:18) Uduino.<FindBoardPort>c__Iterator0:MoveNext() (at Assets/Uduino/Scripts/UduinoManager.cs:534) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

and image shows setup console:

Comments (2)

  1. Marc Teys repo owner

    A critical error has been introduced in the last version on the arduino library. It is fixed and will be pushed in the next patch.

    In the meanwhile, you can fix it by adding :

    #!cpp
    
    void setup()
    {
      // ...
        uduino.addInitFunction(E);
    }
    
    void E() {}
    
  2. Log in to comment