Thu Mar 14, 2019 6:40 pm
Follow the image in the advanced manual chapter 2 to set the two board ID's you want.
Any board ID is OK as long as they are not the same.
To check if you have set the board ID's correctly you can start the gertbot GUI .
When you connect the GUI will show you which board ID's it has found.
Then in the code use those board ID's to talk to that board:
Every command which talks to a specific board has a 'board' parameter:
def set_endstop ( board,channel,stop_A,stop_B) :
def set_endstop2 ( board,channel,stop_A,stop_B,filt_A,filt_B) :
def set_short( board,channel,short) :
def set_shorthot( board,channel,short) :
def set_brush_ramps( board,channel,ramp_up,ramp_down,ramp_halt) :
def move_brushed( board,channel,direction) :
def pwm_brushed( board,channel,freq,dc) :
def move_stepper( board,channel,steps) :
def stop_stepper( board,channel,mode) :
def freq_stepper( board,channel,freq) :
def read_error_status( board):
def error_string(error_number):
def get_motor_config( board,mot) :
def get_motor_status( board,mot) :
def get_motor_missed( board,mot) :
def send_dcc_mess( board,channel,data) :
def dcc_config( board,channel,repeat,preamble,dc) :
def ramp_stepper( board,channel,start_stop,ramprate) :
def set_pin_mode( board,pin,mode) :
def set_allpins_mode( board,modes) :
def set_output_pin_state( board,output) :
def activate_opendrain( board,drain0,drain1) :
def set_dac( board,dac,val) :
def read_adc( board,adc) :
def read_inputs( board) :
def get_io_setup(brd) :
def set_baudrate(baud) :
def quad_on( board,channel,on,position,rev):
def quad_read( board,channel) :
def quad_goto( board,channel,position,duty_cycle):
def quad_limit( board,channel,max_on,min_on,slow_on,maxp,minp,slow_dist,slow_dc) :