def METHOD_NAME(change):
    global current_detent
    # Update the current detent and pid setpoint
    current_detent += change
    pos_pid.setpoint = (current_detent * DETENT_SIZE)     # Update the motor position setpoint
    print("Detent =", current_detent)
    # Convert the current detent to a hue and set the onboard led to it
    hue = (current_detent - MIN_DETENT) / (MAX_DETENT - MIN_DETENT)
    for i in range(NUM_LEDS):
        if current_detent == i:
            board.leds.set_hsv(i, hue, 1.0, BRIGHTNESS)
        else:
            board.leds.set_hsv(i, hue, 1.0, 0.0)