- Added a 10-bit sine table, probably wasteful considering its stored in 16-bit integers.
- Added "DDS_MAX_COMPARATOR" and "DDS_MAX_ACCUMULATOR" macros to hide some math and imrpove readability.
- Simplified calcFrequency and made it work for arbirary frequencies (with/without default refclk)
- Simplified getDutyCycle(). I think its more understandable now, and works for various combinations of accumulator size and lookup table size.
Tested on both an Arduino Zero and an Arduino UNO. Seems to work, but YMMV.