|
51 | 51 | #include "uart.h"
|
52 | 52 | #include "modmachine.h"
|
53 | 53 | #include "mpthreadport.h"
|
54 |
| -<<<<<<< Updated upstream |
55 | 54 | #include "badge_portexp.h"
|
56 | 55 | #include "badge_pins.h"
|
57 | 56 | #include "bpp_init.h"
|
58 | 57 | #include "driver/gpio.h"
|
59 |
| -======= |
60 | 58 | #include "badge_base.h"
|
61 |
| ->>>>>>> Stashed changes |
62 | 59 |
|
63 | 60 | // MicroPython runs as a task under FreeRTOS
|
64 | 61 | #define MP_TASK_PRIORITY (ESP_TASK_PRIO_MIN + 1)
|
@@ -147,21 +144,21 @@ void app_main(void) {
|
147 | 144 | uint8_t magic = esp_rtcmem_read(0);
|
148 | 145 | uint8_t inv_magic = esp_rtcmem_read(1);
|
149 | 146 |
|
150 |
| - //Grab level of int pin of touchpad. If high, this was a |
151 |
| - //scheduled wakeup because of a deep sleep timeout. If low, |
152 |
| - //the user used the touchpad. |
153 |
| - //yes, this is v1 specific. Please add v0.x support yourself. |
154 |
| - gpio_config_t io_conf = { |
155 |
| - .mode = GPIO_MODE_INPUT, |
156 |
| - .pin_bit_mask = 1LL << PIN_NUM_MPR121_INT, |
157 |
| - .pull_down_en = 0, |
158 |
| - .pull_up_en = 1, |
159 |
| - }; |
160 |
| - gpio_config(&io_conf); |
161 |
| - if (gpio_get_level(PIN_NUM_MPR121_INT)==1) { |
162 |
| - printf("Touch int is high. Starting bpp.\n"); |
163 |
| - do_bpp_bgnd(); |
164 |
| - } |
| 147 | + // //Grab level of int pin of touchpad. If high, this was a |
| 148 | + // //scheduled wakeup because of a deep sleep timeout. If low, |
| 149 | + // //the user used the touchpad. |
| 150 | + // //yes, this is v1 specific. Please add v0.x support yourself. |
| 151 | + // gpio_config_t io_conf = { |
| 152 | + // .mode = GPIO_MODE_INPUT, |
| 153 | + // .pin_bit_mask = 1LL << PIN_NUM_MPR121_INT, |
| 154 | + // .pull_down_en = 0, |
| 155 | + // .pull_up_en = 1, |
| 156 | + // }; |
| 157 | + // gpio_config(&io_conf); |
| 158 | + // if (gpio_get_level(PIN_NUM_MPR121_INT)==1) { |
| 159 | + // printf("Touch int is high. Starting bpp.\n"); |
| 160 | + // do_bpp_bgnd(); |
| 161 | + // } |
165 | 162 |
|
166 | 163 | if (magic == (uint8_t)~inv_magic) {
|
167 | 164 | printf("Magic checked out!\n");
|
|
0 commit comments