cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Enabling LED when it reads the value

hi all,

 

i am acquiring signal using hall sensor.. i want LED to glow RED when the hall voltage is 0.5 and green when voltage is 0.7 (values are just for an example)... should i use the event structure? can anyone show me the sample code..

 

thanq

Every Expert was once a Beginner!!
0 kudos
Mensaje 1 de 2
2.501 Vistas

Hi,

 

A case structure or even some simple boolean/comparison logic would be best. Do a bit of research and have a go at coding something yourself. You'll understand things a lot better and it's much better in the long run. Feel free to post back with your code for us to help some more.

 

-CC

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


Mensaje 2 de 2
2.493 Vistas