A school bus driver who watched pornography on his phone while picking up and dropping off pupils has been given unpaid work.