Browse Source

Changed pins for real PCB

master
Robin Thoni 4 years ago
parent
commit
7d8fca826a
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
1 changed files with 12 additions and 12 deletions
  1. 12
    12
      AppCore.cpp

+ 12
- 12
AppCore.cpp View File

8
 #define TEMP_INTERVAL ((temp_t)(0.5 * 10.0f))
8
 #define TEMP_INTERVAL ((temp_t)(0.5 * 10.0f))
9
 #define LCD_CHAR_SENSOR 1
9
 #define LCD_CHAR_SENSOR 1
10
 
10
 
11
-#define PIN_ONEWIRE 12
12
-#define PIN_BTN_MODE 11
13
-#define PIN_BTN_MINUS 10
14
-#define PIN_BTN_PLUS 9
15
-#define PIN_LCD_LED 8
16
-#define PIN_LCD_RS 7
17
-#define PIN_LCD_ENABLE 6
18
-#define PIN_LCD_D0 5
19
-#define PIN_LCD_D1 4
20
-#define PIN_LCD_D2 3
21
-#define PIN_LCD_D3 2
11
+#define PIN_ONEWIRE A0
12
+#define PIN_BTN_MODE 10
13
+#define PIN_BTN_MINUS 11
14
+#define PIN_BTN_PLUS 12
15
+#define PIN_LCD_LED 2
16
+#define PIN_LCD_RS 8
17
+#define PIN_LCD_ENABLE 7
18
+#define PIN_LCD_D4 6
19
+#define PIN_LCD_D5 5
20
+#define PIN_LCD_D6 4
21
+#define PIN_LCD_D7 3
22
 
22
 
23
 #define BUTTONS_COUNT (sizeof(g_buttons) / sizeof(*g_buttons))
23
 #define BUTTONS_COUNT (sizeof(g_buttons) / sizeof(*g_buttons))
24
 #define MODE_SEQUENCE_COUNT (sizeof(m_modeSequence) / sizeof(*m_modeSequence))
24
 #define MODE_SEQUENCE_COUNT (sizeof(m_modeSequence) / sizeof(*m_modeSequence))
51
           , m_btnMinus{PIN_BTN_MINUS}
51
           , m_btnMinus{PIN_BTN_MINUS}
52
           , m_btnPlus{PIN_BTN_PLUS}
52
           , m_btnPlus{PIN_BTN_PLUS}
53
           , m_buttons{&m_btnMode, &m_btnMinus, &m_btnPlus}
53
           , m_buttons{&m_btnMode, &m_btnMinus, &m_btnPlus}
54
-          , m_lcd{PIN_LCD_RS, PIN_LCD_ENABLE, PIN_LCD_D0, PIN_LCD_D1, PIN_LCD_D2, PIN_LCD_D3}
54
+          , m_lcd{PIN_LCD_RS, PIN_LCD_ENABLE, PIN_LCD_D4, PIN_LCD_D5, PIN_LCD_D6, PIN_LCD_D7}
55
           , m_oneWire{PIN_ONEWIRE}
55
           , m_oneWire{PIN_ONEWIRE}
56
           , m_sensors{&m_oneWire}
56
           , m_sensors{&m_oneWire}
57
           , m_sensor1{0}
57
           , m_sensor1{0}

Loading…
Cancel
Save