Error message project can be compile

You don't have the setTrans() function defined in the sketch, only the prototype for it