mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
nothing works, 2 mosfets died...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user