<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>how do i get the led lights to flash</title>
<description> I am trying to get the L.E.D lights on the Wii remote to flash, please help asap.</description><link>http://forum.wiibrew.org/read.php?11,28023,28023#msg-28023</link><lastBuildDate>Sun, 13 Sep 2026 13:55:07 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,28023,33619#msg-33619</guid>
<title>Re: how do i get the led lights to flash</title><link>http://forum.wiibrew.org/read.php?11,28023,33619#msg-33619</link><description><![CDATA[ I just noticed that they updated wiiuse_set_leds function.<br />it is void wiiuse_set_leds(struct wiimote_t* wm, int leds,cmd_blk_cb cb); now<br /><br />Im trying to get my leds to flash.<br /><br /><pre class="bbcode">
#include <stdio.h>
#include <stdlib.h>
#include <gccore.h>
#include <wiiuse/wpad.h>

static void *xfb = NULL;
static GXRModeObj *rmode = NULL;

//---------------------------------------------------------------------------------
int main(int argc, char **argv) {
//---------------------------------------------------------------------------------

   VIDEO_Init();
   WPAD_Init();
   rmode = VIDEO_GetPreferredMode(NULL);
   xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));
   console_init(xfb,20,20,rmode-&gt;fbWidth,rmode-&gt;xfbHeight,rmode-&gt;fbWidth*VI_DISPLAY_PIX_SZ);
   VIDEO_Configure(rmode);
   VIDEO_SetNextFramebuffer(xfb);
   VIDEO_SetBlack(FALSE);
   VIDEO_Flush();
   VIDEO_WaitVSync();
   if(rmode-&gt;viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();

   printf("\x1b[2;0H");
   printf("leds\n");
	 while(WPAD_Probe(0, NULL) != WPAD_ERR_NONE)
	 {
		WPAD_ScanPads();
    printf("\n\nfound wiimote\n\n");
    if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) { exit(0); }
	 }

   while(1) {
      WPAD_ScanPads();
      if (WPAD_ButtonsDown(0) & WPAD_BUTTON_HOME) { exit(0); }
      
      if (WPAD_ButtonsDown(0) & WPAD_BUTTON_1)
      {
         wiiuse_set_leds(WPAD_CHAN_0,WIIMOTE_LED_1, NULL);
      }
      if (WPAD_ButtonsDown(0) & WPAD_BUTTON_2)
      {
         wiiuse_set_leds(WPAD_CHAN_0,WIIMOTE_LED_2, NULL);
      }
      if (WPAD_ButtonsDown(0) & WPAD_BUTTON_A)
      {
         wiiuse_set_leds(WPAD_CHAN_0,WIIMOTE_LED_3, NULL);
      }
      if (WPAD_ButtonsDown(0) & WPAD_BUTTON_B)
      {
         wiiuse_set_leds(WPAD_CHAN_0,WIIMOTE_LED_4, NULL);
      }

      // Wait for the next frame
      VIDEO_WaitVSync();
   }
   return 0;
}</pre><br />only problem with this code is that the leds wont flash when I press buttons on wiimote.]]></description>
<dc:creator>Mouse</dc:creator>
<category>Coding</category><pubDate>Tue, 15 Sep 2009 16:54:43 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,28023,28626#msg-28626</guid>
<title>Re: how do i get the led lights to flash</title><link>http://forum.wiibrew.org/read.php?11,28023,28626#msg-28626</link><description><![CDATA[ i&#039;ll take the terrible hack until then...]]></description>
<dc:creator>mdbrim</dc:creator>
<category>Coding</category><pubDate>Wed, 12 Aug 2009 02:40:45 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,28023,28529#msg-28529</guid>
<title>Re: how do i get the led lights to flash</title><link>http://forum.wiibrew.org/read.php?11,28023,28529#msg-28529</link><description><![CDATA[ The author calls his workaround a "terrible hack". It would be much better if libogc would support it.]]></description>
<dc:creator>georgp24</dc:creator>
<category>Coding</category><pubDate>Tue, 11 Aug 2009 08:14:34 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,28023,28501#msg-28501</guid>
<title>Re: how do i get the led lights to flash</title><link>http://forum.wiibrew.org/read.php?11,28023,28501#msg-28501</link><description><![CDATA[ perfect!<br /><br />i actually looked thru the link i posted to the wii use site trying to give a clear answer and ran into the same problem the author of the the Wiimote LED Flasher ran into... looks like he found a workaround...<br /><br />Good find georgp, i&#039;ll save this for later usage!]]></description>
<dc:creator>mdbrim</dc:creator>
<category>Coding</category><pubDate>Tue, 11 Aug 2009 02:12:33 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,28023,28417#msg-28417</guid>
<title>Re: how do i get the led lights to flash</title><link>http://forum.wiibrew.org/read.php?11,28023,28417#msg-28417</link><description><![CDATA[ There is the Wmlflash application which shows how to do this including source: <a href="http://www.wiibrew.org/wiki/Wmlflash" rel="nofollow">Wiimote LED Flasher</a><br /><br />However, it shows that libogc/wpad-functions do not have a straightforward way to write data to the Wiimote.<br /><br />I put in a feature request for libogc to support that and please support that so libogc allows you flash the LED&#039;s in its next release.<br /><br /><a href="http://sourceforge.net/tracker/?func=browse&group_id=114505&atid=668554" rel="nofollow">SourceForge.net: devkitPro: Feature Requests</a>]]></description>
<dc:creator>georgp24</dc:creator>
<category>Coding</category><pubDate>Mon, 10 Aug 2009 18:23:44 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,28023,28025#msg-28025</guid>
<title>Re: how do i get the led lights to flash</title><link>http://forum.wiibrew.org/read.php?11,28023,28025#msg-28025</link><description><![CDATA[ <a href="http://wiiuse.net/?nav=example" rel="nofollow">Look at the wiiuse_set_leds stuff</a>]]></description>
<dc:creator>mdbrim</dc:creator>
<category>Coding</category><pubDate>Fri, 07 Aug 2009 07:44:08 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,28023,28023#msg-28023</guid>
<title>how do i get the led lights to flash</title><link>http://forum.wiibrew.org/read.php?11,28023,28023#msg-28023</link><description><![CDATA[ I am trying to get the L.E.D lights on the Wii remote to flash, please help asap.]]></description>
<dc:creator>BlueWack</dc:creator>
<category>Coding</category><pubDate>Fri, 07 Aug 2009 06:41:08 +0200</pubDate></item>
</channel>
</rss>