GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. VNB
    3. Topics
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by VNB

    • V

      GUI-O with Nano 33 BLE and the ArduinoBLE Library

      Comments & Feedback
      • • • VNB
      12
      0
      Votes
      12
      Posts
      755
      Views

      K

      @VNB said in GUI-O with Nano 33 BLE and the ArduinoBLE Library:

      There were two minor problems.
      1.) The Slider Control knob always stayed at 100% even if it is set to a low brightness. That was fixed by adding the following instruction in the "led drive" section.
      sendMsg("@brightness VIS:1 VAL:val\r\n");

      The code:

      @VNB said in GUI-O with Nano 33 BLE and the ArduinoBLE Library:

      sendMsg("@brightness VIS:1 VAL:val\r\n");

      is not correct (as you've already pointed out), since the val is a non-numeric string that GUI-O cannot convert to numeric string.

      This is correct:

      @VNB said in GUI-O with Nano 33 BLE and the ArduinoBLE Library:

      sendMsg("@brightness VIS:1 VAL:"+ String(val) + "\r\n");

      as the String constructor converts the val into numerical representation.

      This code should not be necessary, since the value originates from CB, which should already have the correct position. The issue seems to originate from somewhere else, but I cannot see the problem...

      Regards,
      kl3m3n

    • V

      More information and examples of CB widget

      Comments & Feedback
      • • • VNB
      5
      0
      Votes
      5
      Posts
      331
      Views

      V

      Your changes work great! THANK YOU for the quick response and new parameters in CB