nothing works, 2 mosfets died...

This commit is contained in:
Edward Emelianov
2024-03-05 15:35:34 +03:00
parent 1ecea45cc0
commit c6e8347d23
8 changed files with 84 additions and 20 deletions

View File

@@ -64,7 +64,8 @@
#define DIR_U_PIN (1<12)
#define DIR_D_PIN (1<13)
// define BUTTONS_NEGATIVE if button pressed when ==1
// define BUTTONS_NEGATIVE if ALL button pressed when ==1
// (inversion of common buttons - by flag `inverted`)
#ifdef BUTTONS_NEGATIVE
#define PRESSED(port, pin) ((port->IDR & pin) == pin)
#else