Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- //#include <proc/p32mx440f256h.h>
-
- #include "HarakiriRelay.h"
- #include "BoardCfg.h"
- #include "timer.h"
-
- #define PIN_ACTIVE 1
- #define PIN_INACTIVE 0
-
-
- void InitHarakiriRelay()
- {
- HARAKIRI_RELAY_ON_PIN = PIN_INACTIVE; //Very important!!
- }
-
-
- bool HarakiriRelayTurnOff()
- {
- HARAKIRI_RELAY_ON_PIN = PIN_ACTIVE; //Just wait for the power to be killed...
- return true;
- }
|