para el ventilador

Dependencies:   QEI FastPWM

Revision:
0:9d0b9785d3d6
Child:
1:aa5df1878126
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project_defines.h	Sat Apr 11 22:53:05 2020 +0000
@@ -0,0 +1,84 @@
+
+#ifndef PROJECT_DEFINES_H_
+#define PROJECT_DEFINES_H_
+
+/* File inclusion */
+
+/* Pin definition */
+
+// Switches and buttons
+#define ENTER_SW_PIN                            PA_15
+#define LIMIT_SW_01_PIN                         PB_7
+#define GAS_INPUT_SW_PIN                        PC_13
+
+// Rotary encoder
+#define ENCODER_A_SIGNAL                        PA_13
+#define ENCODER_B_SIGNAL                        PA_14
+ 
+//TFT display
+#define TFT_D0                                  D8
+#define TFT_D1                                  D9
+#define TFT_D2                                  D2
+#define TFT_D3                                  D3
+#define TFT_D4                                  D4
+#define TFT_D5                                  D5
+#define TFT_D6                                  D6
+#define TFT_D7                                  D7
+
+//Stepper motor
+#define STEPPER_PULSE_PIN                       PC_8
+#define STEPPER_ENABLE_PIN                      PC_6
+#define STEPPER_DIRECTION_PIN                   PC_5
+
+
+
+/* Constants and macros */
+
+/* Defines for the switches and buttons */
+#define ENTER_SW                                0
+#define LIMIT_SW_01                             1
+#define GAS_INPUT_SW                            2
+
+/* Defines for the encoder user interface */
+#define ENCODER_THRESHOLD                       8
+
+#define PARAMETER_SELECTION_INDEX_LIMIT         3
+#define VOLUME_SETPOINT_INDEX_LIMIT             11
+#define RESP_FREQUENCY_INDEX_LIMIT              21
+#define I_E_RATIO_INDEX_LIMIT                   3
+
+#define PARAMETER_SELECTION_INDEX_DEFAULT       0
+#define VOLUME_SETPOINT_INDEX_DEFAULT           5
+#define RESP_FREQUENCY_INDEX_DEFAULT            10
+#define I_E_RATIO_INDEX_DEFAULT                 0
+
+/* Defines for the TFT user interface */
+#define BACKGROUND_COLOR                        Black
+#define INDICATOR_BOX_LINE_COLOR                Green
+#define INDICATOR_HEADER_TEXT_COLOR             Yellow
+#define INDICATOR_VALUE_TEXT_COLOR              White
+#define INDICATOR_UNITS_TEXT_COLOR              White
+#define PARAMETER_SELECTION_BOX_COLOR           Yellow
+#define PARAMETER_ADJUST_TEXT_COLOR             Green 
+
+#define HEADERS_ROW1_Y_POS                      20
+#define HEADERS_ROW2_Y_POS                      180
+#define UNITS_ROW1_Y_POS                        103
+#define UNITS_ROW2_Y_POS                        263
+#define VALUES_ROW1_Y_POS                       60
+#define VALUES_ROW2_Y_POS                       220
+
+#define VOLUME_SETPOINT_VALUE_DEFAULT           500
+#define RESP_FREQUENCY_VALUE_DEFAULT            20
+#define INSPIRATION_TIME_VALUE_DEFAULT          1.0
+#define EXPIRATION_TIME_VALUE_DEFAULT           2.0
+
+#define AIR_INPUT                               0
+#define OXYGEN_INPUT                            1
+
+/* System default state */
+#define SYSTEM_DEFAULT_STATE                    Main_Screen_Cursor_Disable
+
+
+
+#endif
\ No newline at end of file