Esempio n. 1
0
def grbl_init():
    try:
        arduinoName = arduinosniffer.findArduinoName()
        s = Serial(arduinoName, 9600)
        s.write("\r\r")
        sleep(2)
        s.flushInput()
        return s
    except ConnectionError as e:
        print "An error has occured.\n Check the arduino connection and the arduino.\n"
Esempio n. 2
0
def sniff_arduino():
    name = arduinosniffer.findArduinoName()
    if name:
        log.info('autodetected arduino at {}'.format(name))
    return name
Esempio n. 3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import arduinosniffer

import pydrawbot_ians_branch

print arduinosniffer.findArduinoName()

pydrawbot_ians_branch.grbl_init()