Altera_Forum
Honored Contributor
11 years agoALtera DE2-115 GPIO input
Hi guys, I'm connecting a light sensor interface to a GPIO pin, the output of the sensor is high when light intensity is high and vice verse if the the light intensity is low, now I want to know, how to write a Verilog code to switch in a LED whenever the light intensity is low.
I tried if (lightIntensity == 1'b0) but it didn't work, specifically, HOW ALtera read the GPIO input? --I'm an ultimate beginner, so forgive me :D any help appreciated :)