Skip to content

Commit d9279b0

Browse files
committed
added debugging
1 parent 5f06497 commit d9279b0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

examples/hardware_specific_examples/Teensy/Teensy3/bldc_driver_6pwm_standalone/bldc_driver_6pwm_standalone.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ BLDCDriver6PWM driver = BLDCDriver6PWM(22,23, 9,10, 6,20, 8);
99
// BLDCDriver6PWM driver = BLDCDriver6PWM(2,14, 7,8, 35,36, 8);
1010

1111
void setup() {
12+
Serial.begin(115200);
13+
// Enable debugging
14+
// Driver init will show debugging output
15+
SimpleFOCDebug::enable(&Serial);
16+
1217
// pwm frequency to be used [Hz]
1318
driver.pwm_frequency = 30000;
1419
// dead zone percentage of the duty cycle - default 0.02 - 2%

examples/hardware_specific_examples/Teensy/Teensy4/bldc_driver_6pwm_standalone/bldc_driver_6pwm_standalone.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
BLDCDriver6PWM driver = BLDCDriver6PWM(2,3, 6,9, 8,7);
2626

2727
void setup() {
28+
Serial.begin(115200);
29+
// Enable debugging
30+
// Driver init will show debugging output
31+
SimpleFOCDebug::enable(&Serial);
32+
2833
// pwm frequency to be used [Hz]
2934
driver.pwm_frequency = 30000;
3035
// dead zone percentage of the duty cycle - default 0.02 - 2%

0 commit comments

Comments
 (0)