Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit a28fbda

Browse files
committed
Disabled BPP for now, can work on one tree again
1 parent 3f82403 commit a28fbda

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

esp32/main.c

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,11 @@
5151
#include "uart.h"
5252
#include "modmachine.h"
5353
#include "mpthreadport.h"
54-
<<<<<<< Updated upstream
5554
#include "badge_portexp.h"
5655
#include "badge_pins.h"
5756
#include "bpp_init.h"
5857
#include "driver/gpio.h"
59-
=======
6058
#include "badge_base.h"
61-
>>>>>>> Stashed changes
6259

6360
// MicroPython runs as a task under FreeRTOS
6461
#define MP_TASK_PRIORITY (ESP_TASK_PRIO_MIN + 1)
@@ -147,21 +144,21 @@ void app_main(void) {
147144
uint8_t magic = esp_rtcmem_read(0);
148145
uint8_t inv_magic = esp_rtcmem_read(1);
149146

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+
// }
165162

166163
if (magic == (uint8_t)~inv_magic) {
167164
printf("Magic checked out!\n");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy