fix raw_cfg_pins and raw_set_pins calls

Hi, 

small fix

parameter of port.write() mus by a string not a int.