[un/loquer] notready2009
brolin .
brolin108 at gmail.com
Tue Feb 17 20:23:43 GMT 2009
Ehhhhhhhhh!
On Tue, Feb 17, 2009 at 12:21 PM, alejo duque <alejoduque en gmail.com> wrote:
> listo funciona el control de los servos desde irc! mas tarde subo un
> stream, o asi sea via skype para que lo ensayemos desde alla... gracias
> brolin por la ayuda ayer.
> /a
>
>
> #!/usr/bin/python # encoding: utf-8 """ Created by ad on 2009-02-16. NoCopyright 2009 __18kpies__. No rights reserved. """
> import stringimport servoimport serialimport timeimport random
> import supybot.utils as utilsfrom supybot.commands import *import supybot.plugins as pluginsimport supybot.ircutils as ircutilsimport supybot.callbacks as callbacks
>
> class CamBot(callbacks.Plugin):
> def move(self, irc, msg, args, motor, angle):
> """<motor> <value in degrees>
> Moves the camera accordingly """
> servo.move(motor, angle)
> irc.reply("Moving Servo %s %s degrees" % (motor, angle))
> move = wrap(move, ['int', 'int'])
> Class = CamBot
> # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
>
>
> _______________________________________________
> unloquer mailing list
> unloquer en lists.aktivix.org
> https://lists.aktivix.org/mailman/listinfo/unloquer
>
>
------------ pr?xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <https://lists.aktivix.org/pipermail/unloquer/attachments/20090217/c115f07d/attachment.htm>
More information about the unloquer
mailing list