test code for DUE, began controller version for DUE, no pwm yet, but MM implemented