How i set up my breadboard:
Placed SN74LS08N (AND gate) on a breadboard. Connected IC pin 7 to GND and IC pin 14 to 5 V for IC to get powered. connected GPIO pin 16 to IC pin 13, connected GPIO pin 12 to IC pin 12 and connected GPIO pin SCLK to IC pin 11. connected LEDs’ anode (+) to GPIO 12, 16 and SCLK, connected LEDs’ cathode (-) to one end of resisters and connected the other end of resisters to GND
I’m fairly new to RPi and for some reason i cant wrap my head around how to write a python code to simulate an AND gate.