Announcement

Collapse
No announcement yet.

report Winbutton on Magicevent

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • report Winbutton on Magicevent

    Hello.

    Is it possible to notify Arduino that Winbutton has been pressed from the Magicevent set in Winbutton?

  • #2
    Hi Toshiyuki,

    Yes it is possible, but you can use send report message from Winbutton Event handler to Arduino without using Magicevent.
    Please try to see the application note below as reference.
    ViSi Genie Connecting a 4D Display to an Arduino Host

    Thank you.

    Best Regards,
    Ferdinand

    Comment


    • #3

      thank you for your answer.


      I want to reset the timer when the Win button is pressed and at the same time notify Arduino that it was pressed.

      The following code will cause SendReport to fail.

      func MagicEvent3(var newval)

      SendReport(REPORT_EVENT,tWinbutton,2,1);

      sys_SetTimer(TIMER1, 0);

      WriteObject(tLeddigits, 1, 0);

      endfunc

      Comment


      • #4
        Hi,

        Try to use tWinButton instead of tWinbutton?
        Code:
        SendReport(REPORT_EVENT,tWinButton,2,1);
        Best Regards,
        Ferdinand
        ​​

        Comment


        • #5

          Thank you.
          It went well.
          It was my simple mistake.
          I'm sorry.

          Comment

          Working...
          X