Firmware for the NearZero Brushless Motor Controller.
Upload with the Arduino IDE using an AVR-ISP-MK2 in-system programmer (not USB). Just plug it in and do "Ctrl+Shift+U" to compile and upload.
Board Settings: "Arduino/Genuino Megaw or Mega 2560"