![]() |
Didn't Like Digital Handling
I am used to having 0 mean that the circuit is open and 1 meaning that the circuit is closed, so I did this to the rc digital input portion of ifi_aliases.h:
Code:
/* Aliases used to read the pins when used as INPUTS. */feel free to comment my methods |
Re: Didn't Like Digital Handling
You're likely to cause great confusion by redefining things that everyone else programming the robots in MicroChip C understands in a specific way. I suggest instead that you leave the existing #defines alone and create your own aliases for your own use, like this:
Code:
/* Digital input aliases that evaluate to 0 when the input is open and 1 when grounded by a switch. */ |
| All times are GMT -5. The time now is 04:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi