How to use the plotink.ebb_serial function in plotink

To help you get started, we’ve selected a few plotink examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github evil-mad / plotink / plotink / ebb_motion.py View on Github external
# servo power immediately, respectively.
    #
    # This feature requires EBB hardware v 2.5.0 and firmware 2.6.0
    #
    # Reference: http://evil-mad.github.io/EggBot/ebb.html#SR
    #
    if port_name is not None:
        version_status = ebb_serial.min_version(port_name,"2.6.0")
        if not version_status:
            return      # Unable to read version, or version is below 2.6.0.
        else:
            if state is None:
                str_output = 'SR,{0}\r'.format(timeout_ms)
            else:
                str_output = 'SR,{0},{1}\r'.format(timeout_ms, state)
            ebb_serial.command(port_name, str_output)
github evil-mad / plotink / plotink / ebb_motion.py View on Github external
def doABMove(port_name, delta_a, delta_b, duration):
    # Issue command to move A/B axes as: "XM,,,"
    # Then,  moves by  + , and  as  - 
    if port_name is not None:
        str_output = 'XM,{0},{1},{2}\r'.format(duration, delta_a, delta_b)
        ebb_serial.command(port_name, str_output)

plotink

Helper routines for use with plotters

MIT
Latest version published 5 months ago

Package Health Score

61 / 100
Full package analysis

Similar packages