Closed mkoval closed 14 years ago
sure. go for it. realize that this means fixing all functions that take a "pin index" (including the interrupt ones). It will also make interrupt_get useless (as the index spaces will be "the same")
Good point about interrupt_get()
. With this change, I will remove it and add a clarifying comment to digital_get()
.
This should be complete in my develop
branch. If it looks alright to you, I'll go ahead and merge it into master
. Odds are there's a bug or two, though...
fixed a few bugs. see my branch for changes.
Pulled and merged into master. Hopefully it's bug-free.
Instead of attempting the impossible with cross-platform indexing, we should use internal unique indexes that are aliased by handy macros. I'll be working on this in my develop
branch.
Seems done in master
, although it has not been tested on actual hardware.
Before supporting two-wire motors, we need to standardize cross-platform pin indexing. My suggestion is to always mimic the hardware's physical numbering, with exception of the PIC's dedicated interrupt pins. Those pins should be treated as as extra digital inputs. Thoughts?