stmhal, pin: Save 140 bytes ROM by simplifying pin_print function.