question for simple encoder programing

Hello everyone.. :) I want to know how to program 8 LED using SN74SL138 how to program each of the LED to turn the LED on/off

http://www.ti.com/lit/ds/symlink/sn74ls138.pdf

Connect three output pins to A, B, and C. The pattern of output pins selects one of the 8 outputs Y0-Y7. The outputs are Active Low so connect the LEDs between the Y outputs and +5V.

johnwasser:
http://www.ti.com/lit/ds/symlink/sn74ls138.pdf

Connect three output pins to A, B, and C. The pattern of output pins selects one of the 8 outputs Y0-Y7. The outputs are Active Low so connect the LEDs between the Y outputs and +5V.

Thx for the link… but what I need is the arduino programming code to control that 8 LED…
people used the encoder for LED matrix, or 7 segment… but I just need for LED… simple one but indeed I didn’t understand the code from matrix or 7seg
I’m still new to this things… hehehe :blush: