[tuxdroid-svn] r701 - software/tuxgi/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2007-11-15 10:27:02
|
Author: jaguarondi Date: 2007-11-15 11:27:04 +0100 (Thu, 15 Nov 2007) New Revision: 701 Modified: software/tuxgi/trunk/tuxgi.py Log: * Updated tuxgi with the LEDs status inversion corrected before in the daemon. Modified: software/tuxgi/trunk/tuxgi.py =================================================================== --- software/tuxgi/trunk/tuxgi.py 2007-11-15 10:26:40 UTC (rev 700) +++ software/tuxgi/trunk/tuxgi.py 2007-11-15 10:27:04 UTC (rev 701) @@ -108,10 +108,10 @@ tux.tts.on_sound_off=self.on_sound_off tux.tts.on_voice_list=self.on_voice_list tux.event.on_status=self.on_status - tux.event.on_left_blue_led_on=self.on_right_blue_led_on - tux.event.on_left_blue_led_off=self.on_right_blue_led_off - tux.event.on_right_blue_led_on=self.on_left_blue_led_on - tux.event.on_right_blue_led_off=self.on_left_blue_led_off + tux.event.on_left_blue_led_on=self.on_left_blue_led_on + tux.event.on_left_blue_led_off=self.on_left_blue_led_off + tux.event.on_right_blue_led_on=self.on_right_blue_led_on + tux.event.on_right_blue_led_off=self.on_right_blue_led_off tux.event.on_mouth_stop=self.on_mouth_stop tux.event.on_eyes_stop=self.on_eyes_stop thread.start_new_thread(self.status_viewer_thread,()) @@ -363,9 +363,8 @@ global toggled_by_event if toggled_by_event: return if widget.get_active(): - tux.cmd.raw(0x31,0,0,0) + tux.cmd.raw(0x39,0,0,0) tux.event.wait_status(DATAS_STATUS_WINGS_POSITION_COUNTER,0,5) - tux.cmd.wings_on(1) thread.start_new_thread(_funct,()) @@ -377,7 +376,7 @@ global toggled_by_event if toggled_by_event: return if widget.get_active(): - tux.cmd.raw(0x31,0,0,0) + tux.cmd.raw(0x3A,0,0,0) tux.event.wait_status(DATAS_STATUS_WINGS_POSITION_COUNTER,0,5) thread.start_new_thread(_funct,()) |