title: How to turn on a LED with specific address on dot-matrix 74HC595?
body: <p>I have problem when want to determine the address for each LED in dot-matrix 8x8 74HC595, im trying to light on only 1 LED specifically with the address. i have tried many tutorial and documentation but still no luck to light on only 1 LED with spesific location.</p>
  
  <p>this is my circuit design : 
  <a href="https://www.sunfounder.com/learn/Super_Kit_V2_for_RaspberryPi/lesson-12-driving-dot-matrix-by-74hc595-super-kit-for-raspberrypi.html" rel="nofollow noreferrer">https://www.sunfounder.com/learn/Super_Kit_V2_for_RaspberryPi/lesson-12-driving-dot-matrix-by-74hc595-super-kit-for-raspberrypi.html</a></p>
  
  <p>my code with C:</p>
  
  <pre><code>#include &lt;wiringPi.h&gt;
  #include &lt;stdio.h&gt;
  
  #define   SDI   0   //serial data input
  #define   RCLK  1   //memory clock input
  #define   SRCLK 2   //shift register clock input
  
  unsigned char LED[8] ={0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
  
  void pulse(int pin)
  {
      digitalWrite(pin, 0);
      digitalWrite(pin, 1);
  }
  
  void ShiftOUT(unsigned char byte)
  {
      int i;
  
      for(i=0;i&lt;8;i++)
      {
          // char a = byte &amp; (0x80 &gt;&gt; i)) &gt; 0;
          digitalWrite(SDI, (( byte &amp; (0x80 &gt;&gt; i)) &gt; 0));
          printf("%d", (( byte &gt;&gt; i &gt; 0)));
          pulse(SRCLK);
      }
  
  
      printf("\n","==================");
  }
  
  void init(void)
  {
      pinMode(SDI, OUTPUT);
      pinMode(RCLK, OUTPUT);
      pinMode(SRCLK, OUTPUT);
      digitalWrite(SDI, 0);
      digitalWrite(RCLK, 0);
      digitalWrite(SRCLK, 0);
  }
  
  int main(void)
  {
      int i;
  
      if(wiringPiSetup() == -1)
      {
          printf("setup wiringPi failed !");
          return 1;
      }
  
      init();
  
      while(1)
      {
           for(i=0;i&lt;8;i++)
           {
  
              ShiftOUT(LED[i]);
              pulse(RCLK);
              // printf("=======pull latch========");
              // printf("\n");
              delay(150);
           }
  
  
          delay(500);
  
  
     }
  
      return 0;
  }
  </code></pre>
  
  <p>This code i tried will light on 1 row,i want to light on 1 LED with spesific location</p>
  
  <p>Here is the link i use for simulation to addressing the LED : <a href="https://www.riyas.org/2013/12/online-led-matrix-font-generator-with.html" rel="nofollow noreferrer">https://www.riyas.org/2013/12/online-led-matrix-font-generator-with.html</a></p>
  
  <p>Any help?Thank you</p>