I’ve bought a B-G431-ESC and trying to program the board using arduino but i get this error while trying to upload a sample code in the simplefoc libraby
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:40: error: ‘A_PHASE_UH’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:52: error: ‘A_PHASE_UL’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:64: error: ‘A_PHASE_VH’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:76: error: ‘A_PHASE_VL’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:88: error: ‘A_PHASE_WH’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:100: error: ‘A_PHASE_WL’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:5:74: error: ‘A_OP1_OUT’ was not declared in this scope
5 | LowsideCurrentSense currentSense = LowsideCurrentSense(0.003, -64.0/7.0, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);
| ^~~~~~~~~
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:5:85: error: ‘A_OP2_OUT’ was not declared in this scope
5 | LowsideCurrentSense currentSense = LowsideCurrentSense(0.003, -64.0/7.0, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);
| ^~~~~~~~~
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:5:96: error: ‘A_OP3_OUT’ was not declared in this scope
5 | LowsideCurrentSense currentSense = LowsideCurrentSense(0.003, -64.0/7.0, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);
| ^~~~~~~~~
exit status 1
Compilation error: ‘A_PHASE_UH’ was not declared in this scope; did you mean ‘PHASE_ON’?