Pybytes release 21.1.2019

  • Today we're going to release the new version of Pybytes + Pybytes firmware.

    Please update the firmware of all of your devices Otherwise, Pybytes won't work properly.

    We simplified the creation of signals. Now there's no need to define data type (There's no Data type field in the new signal form). A data type is now sent automatically by the device. Supported Python dataTypes are String, Float, Int, Array, and Tupple.

    0_1548083951698_Screen Shot 2019-01-21 at 16.18.36.png

    We simplified the function for sending data from Python send_virtual_pin_value. You can replace it with send_signal function. We will still support send_virtual_pin_value function for some time.

    # old API:
    # permanent - legacy parameter, don't have any effect
    # signal number shown in Pybytes. 0 - 255 signals
    # data - variable you're sending
    pybytes.send_virtual_pin_value(permanent, signalNumber, data)
    pybytes.send_virtual_pin_value(False, 1, 'hello')
    # new API:
    pybytes.send_signal(signalNumber, data)
    pybytes.send_signal(1, 42)
    pybytes.send_signal(1, 3.14)
    pybytes.send_signal(1, 'hello')
    pybytes.send_signal(1, (42, 3.14))

  • Good point, I'll update the docs.

  • About the parameter 'signalName', i think is relevant to clarify that this parameter corresponds whit the tag "Signal" and not "Name"

Log in to reply

Pycom on Twitter