Package: minirobots-turtle
Python client for Minirobots Turtle RobotInstall$pipinstallminirobots-turtleRun the Minirobots Shell$minirobots-shell[vi]TedamoslabienvenidaalainterfazinteractivadeMinirobots!
DesdeaquípodrásprogramartutortugaentiemporealParaverlaayudacompletaescribíhelp(Turtle)Siquerésversólolaayudadealgunafunciónespecífica,
comoporejemplo'forward',escribíhelp(Turtle.forward)>>>Run the Jupyter Notebook Tutorial$minirobots-tutorialRun the Serial Monitor (robot connected to USB port required)$minirobots-serial-monitor/dev/ttyUSB0
Connectedto:/dev/ttyUSB0
PressCtrl+Ctoexit/'\_/`\  __          __             /\ \            /\ \__/\      \/\_\    ___ /\_\  _ __   ___\ \ \____    ___\ \ ,_\   ____\ \ \__\ \/\ \ /'_`\/\ \/\`'__\/ __`\ \ '__`\/__`\ \ \//',__\\ \ \_/\ \ \ \/\ \/\ \ \ \ \ \//\ \L\ \ \ \L\ \/\ \L\ \ \ \_/\__,`\\ \_\\\_\ \_\ \_\ \_\ \_\ \_\\\____/\ \_,__/\ \____/\ \__\/\____/\/_/\/_/\/_/\/_/\/_/\/_/\/_/\/___/\/___/\/___/\/__/\/___/[init]Minirobotsstarting...[init]MACAddress:2c:3a:e8:15:34:20[init]ConnectingtoWiFiusingCasa-E...Connected![init]IPAddress:192.168.1.112[turtle]Connectingtominirobots.local...Error:[turtle]Connectingtoapi.minirobots.com.ar...Connected![turtle]Currentfirmwareversion:0.3.5[turtle]Nofirmwareupdatefoundatapi.minirobots.com.ar[server]MulticastDNSresponderstartedforminirobots-153420.local[server]MinirobotsTurtleAPIstartedonport80Use ExamplesMaking a square (Interactive Shell)>>>turtle=Turtle('01234f')>>>for_inrange(4):...turtle.forward(10)...turtle.right(90)...Making a star function (Standalone program)fromminirobotsimportTurtleturtle=Turtle('01234f')turtle.auto_send(False)defstar(turtle,n,side):for_inrange(n):turtle.forward(side)turtle.right(360/n)turtle.forward(side)turtle.left(720/n)turtle.send()star(turtle,5,100)PrimitivesClass Turtleclass Turtle(code, ip=None)
    debug(on=None)
    auto_send(on=None)
    info()
    status()
    forward(distance)
    backward(distance)
    right(angle)
    left(angle)
    pen_up()
    pen_down()
    leds(red, green, blue, led=None)
    leds_color(color, led=None)
    random_leds(led=None)
    random_led_right()
    random_led_left()
    turn_off_leds(led=None)
    play_tone(frequency, duration=1000)
    play_note(note, duration=1000)
    play_random_note(duration=1000)
    sleep(duration=1000)
    queue_lock()
    queue_unlock()
    queue_clear()
    send(commands=None)
    stop()

    # Static methods
    get_random_color()
    get_random_note()
    get_frequency(note)

    # Properties
    ip
    ip_age

    # Constants
    LED_LEFT
    LED_RIGHT
    LED_BOTH
    COLORS
    NOTES

    # Aliases
    silence == sleepClass Tortugaclass Tortuga(code=None, ip=None)
    adelante(distancia)
    atras(distancia)
    derecha(angulo)
    izquierda(angulo)
    lapiz_arriba()
    lapiz_abajo()
    leds(rojo, verde, azul, led=None)
    leds_color(color, led=None)
    leds_al_azar(led=None)
    led_izquierdo_al_azar()
    led_derecho_al_azar()
    apagar_leds(led=None)
    tono(frecuencia, duracion=1000)
    nota(nota, duracion=1000)
    nota_al_azar(duracion=1000)
    esperar(duracion=1000)
    auto_enviar(activado=None)
    enviar()
    parar()

    # Aliases
    avanzar = adelante
    retroceder = atras
    subir_lapiz = lapiz_arriba
    bajar_lapiz = lapiz_abajo
    encender_leds = leds
    encender_leds_color = leds_color
    encender_leds_al_azar = leds_al_azar
    encender_led_derecho_al_azar = led_derecho_al_azar
    encender_led_izquierdo_al_azar = led_izquierdo_al_azar
    reproducir_tono = tono
    tocar_nota = nota
    tocar_nota_al_azar = nota_al_azar
    silencio = esperar
    obtener_color_al_azar = Turtle.get_random_color 
    obtener_nota_al_azar = Turtle.get_random_noteDevelopmentCreate environmentUse the bash script$bin/create_env.shOr create it manuallypython3-mvenvenvsourceenv/bin/activate
pipinstall--upgradepip
pipinstall-rrequirements.txt