Преглед изворни кода

Changed pins for real PCB

master
Robin Thoni пре 4 година
родитељ
комит
7d8fca826a
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
1 измењених фајлова са 12 додато и 12 уклоњено
  1. 12
    12
      AppCore.cpp

+ 12
- 12
AppCore.cpp Прегледај датотеку

@@ -8,17 +8,17 @@
8 8
 #define TEMP_INTERVAL ((temp_t)(0.5 * 10.0f))
9 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 23
 #define BUTTONS_COUNT (sizeof(g_buttons) / sizeof(*g_buttons))
24 24
 #define MODE_SEQUENCE_COUNT (sizeof(m_modeSequence) / sizeof(*m_modeSequence))
@@ -51,7 +51,7 @@ AppCore::AppCore()
51 51
           , m_btnMinus{PIN_BTN_MINUS}
52 52
           , m_btnPlus{PIN_BTN_PLUS}
53 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 55
           , m_oneWire{PIN_ONEWIRE}
56 56
           , m_sensors{&m_oneWire}
57 57
           , m_sensor1{0}

Loading…
Откажи
Сачувај