<commit_before>still only in micropython - not ported yet - TODO: please help porting

d("servo_switch", name, pin, on_angle, off_angle,
  on_command='on', off_command='off',
  back_to_angle=None,
  turn_time_ms=700,
  freq=50, min_us=600, max_us=2400, angle=180,
  ignore_case = True, on_change = None,
  report_change = False)

Create a new stepper motor controller acting as a switch.
name will be appended to the mqtt topic and a set appended to
send commands to.

Parameters:
- name: the name it can be addressed under
- pin: the gpiopin
- on_angle/off_angle: respective angles for on/off postions
- on_command/off_command: what needs to be sent to turn the motor to on/off
                          position
- back_to_angle: a medium angle to return to after pushing to on/off position
- turn_time_ms: how long to give the motor in ms to reach its position before
-               stopping power
- freq, min_us, max_us: values controlling the motor settings
- angle: reach of the stepper motor
- ignore_case: should case in the command detection be ignored

Example:
d("servo_switch", "m1", d4, 0, 179, back_to_angle=90)

Now the motor can be controlled via sending to the mqtt-broker
to the topic "node_topic/m1/set" the command on or off<commit_msg>fix doc for servo_switch<commit_after>servo_switch("name", pin, 
  on_angle, off_angle, return_angle,
  on_command="on", off_command="off",
  turn_time_ms=700,
  min_us=600, max_us=2400);

Create a new servo motor controller acting as a switch.
name will be appended to the mqtt topic and a set appended to
send commands to.

Parameters:
- name: the name it can be addressed under
- pin: the gpiopin
- on_angle/off_angle: respective angles for on/off postions
- return_angle: a medium angle to return to after pushing to on/off position
    (if not given as parameter, this feature is not used and motor does not
    return here)
- on_command/off_command: what needs to be sent to turn the motor to on/off
    position
- turn_time_ms: how long to give the motor in ms to reach its position before
                stopping power
- min_us, max_us: values controlling the motor settings

Example:
servo_switch("m1", D4, 0, 180, 90);

Now the motor can be controlled via sending to the mqtt-broker
to the topic "node_topic/m1/set" the command on or off
{'fraction_non_alphanumeric': 0.06684027777777778, 'fraction_numerical': 0.018663194444444444, 'mean_word_length': 3.904255319148936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6620991', 'n_tokens_mistral': 742, 'n_tokens_neox': 705, 'n_words': 311}