-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove voltage probes, add output cooling probes, control light/diode…
…s using a MOSFET + refactoring
- Loading branch information
Showing
27 changed files
with
419 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
#ifndef K40_RELAYS_H | ||
#define K40_RELAYS_H | ||
|
||
#define RELAY_PIN_STATE_ENABLED LOW | ||
#define RELAY_PIN_STATE_DISABLED HIGH | ||
typedef enum { | ||
RELAY_STATE_ENABLED, | ||
RELAY_STATE_DISABLED | ||
} RelayState; | ||
|
||
enum RelayPin { | ||
PIN_RELAY_LASER = 14, | ||
PIN_RELAY_AIR_ASSIST = 12, | ||
PIN_RELAY_COOLING = 13, | ||
PIN_RELAY_ALARM = 4, | ||
PIN_RELAY_LIGHTS = 0, | ||
PIN_RELAY_BEAM_PREVIEW = 26 | ||
}; | ||
typedef enum { | ||
RELAY_PIN_INTERLOCK = 12, | ||
RELAY_PIN_AIR_ASSIST = 14, | ||
RELAY_PIN_ALARM = 4, | ||
RELAY_PIN_LIGHTS = 13, | ||
RELAY_PIN_BEAM_PREVIEW = 26 | ||
} RelayPin; | ||
|
||
typedef struct RelaysCommand RelaysCommand; | ||
struct RelaysCommand { | ||
typedef struct { | ||
RelayPin pin; | ||
bool enable; | ||
}; | ||
RelayState state; | ||
} RelaysCommand; | ||
|
||
void relays_init(); | ||
bool relays_is_enabled(RelayPin pin); | ||
void relays_update(); | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.