02-04-2013 08:04 AM
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
02-04-2013 08:26 AM - edited 02-04-2013 08:28 AM
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