P07 is how many magnets are used to give a speed signal.
If you have a direct drive motor, there is no speed sensor in it, so P07 is the number of magnets in the rotor.
If you have a geared hub-motor, the number of magnets is 1 or 6. You can tell which of the two by the displayed speed. If...