added flags, defines and tests for mega and yun
- methods to fix analog comparator modes
- other flags and tests for different hardwares
- use bitWrite* defines
- debug events and analogComparator
oops