Generating Hall code
Submitted by har_varun on Thu, 12/13/2012 - 19:30
Hello, How do I generate a Hall code if my Hall signals are coming from different GPIO pins like GPIO-5,GPIO-19,GPIO-24.. not in a sequential ports GPIO1,2,3... How can I give them to a case block. I see in all the examples they are considering hall signals coming from sequential GPIO pins.. Is there any other ways to get a Hall code if they are coming from different GPIO pins as I mentioned 5,19,24... like that or else how can I use the case block in this case? Please help me.
Thanks.
Find more posts tagged with
Sort by:
1 - 1 of
11
Submitted by Anders89 on Fri, 12/14/2012 - 14:46.
You can or the three single bit channels together after shifting them appropriately like so:
<?xml version="1.0" encoding="UTF-8"?>