Search found 30 matches

by PM-TPI
Tue Aug 25, 2020 9:23 pm
Forum: ESP32 boards
Topic: Why RTC.alarm() not available on ESP32 , have some difficult point ?
Replies: 2
Views: 775

Re: Why RTC.alarm() not available on ESP32 , have some difficult point ?

Without RTC alarm how can I wake from lightsleep every 60sec ??? Currently I'm doing a Bluetooth scan every 60 seconds... tm.init(period=60_000, mode=Timer.PERIODIC, callback=ble) Scan takes < 10 sec then waits for interrupt to go again. I get a very accurate timestamps. But I like to be in a sleep ...
by PM-TPI
Thu Jul 09, 2020 9:27 pm
Forum: ESP32 boards
Topic: Bluetooth conflict with LittlevGL ili9341 driver
Replies: 3
Views: 444

Re: Bluetooth conflict with LittlevGL ili9341 driver

To date I have yet to find a solution for the Bluetooth scanning function becoming disabled due to its interaction with LVGL. I have created this very short routine for anyone who might like to take a shot at it. import ubluetooth, utime from machine import Timer from micropython import const import...
by PM-TPI
Sat Jul 04, 2020 3:03 pm
Forum: General Discussion and Questions
Topic: How to "return" result from _IRQ_SCAN_RESULT
Replies: 2
Views: 497

Re: How to "return" result from _IRQ_SCAN_RESULT

Would using schedule in "elif event == _IRQ_SCAN_DONE:" be an acceptable method to pass data...

Code: Select all

rssiValue = None
def bt_irq(event, data):
    global rssiValue
    if event == _IRQ_SCAN_RESULT:
	rssiValue = rssi
    elif event == _IRQ_SCAN_DONE:
        schedule(func, rssiValue)
by PM-TPI
Fri Jun 12, 2020 9:00 pm
Forum: ESP32 boards
Topic: LVGL and SD Card won't share SPI bus
Replies: 22
Views: 1898

Re: LVGL and SD Card won't share SPI bus

No. I have never used the ILI9341 micropython driver in any of my littlevgl projects. At this point I have no reason to switch to the micropython driver as the modified C driver does what I need. It's a case of "if it's not broken, don't fix it". Mike How would I go about adding the modxpt2046.c to...
by PM-TPI
Mon Jun 08, 2020 12:00 pm
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 17
Views: 1487

Re: BLE Scan forever stops after 7+ Hours

Latest build with... ESP-IDF v4.0.1 4c81978a3e2220674a432a588292a4c860eef27b micropython 1e6d18c915ccea0b6a19ffec9710d33dd7e5f866 and esp32/Make file updated to fa2c8f1ef8687aa4025f2fbbc7333ae925363585 Has appeared to correct BLE scan unexpectedly stopping issue. Previous build would not run for mor...
by PM-TPI
Sun Jun 07, 2020 2:29 pm
Forum: ESP32 boards
Topic: Build micropython with IDF v4.0.1 error
Replies: 3
Views: 330

Re: Build micropython with IDF v4.0.1 error

FYI... somewhere along the line
_IRQ_SCAN_RESULT = const(1 << 4) changed to cont(5) and
_IRQ_SCAN_COMPLETE = const(1 << 5) changed to cont(6)
by PM-TPI
Sat Jun 06, 2020 5:06 pm
Forum: ESP32 boards
Topic: Build micropython with IDF v4.0.1 error
Replies: 3
Views: 330

Re: Build micropython with IDF v4.0.1 error

Built micropython with... ESP-IDF v4.0.1 4c81978a3e2220674a432a588292a4c860eef27b micropython 1e6d18c915ccea0b6a19ffec9710d33dd7e5f866 and esp32/Make file updated to fa2c8f1ef8687aa4025f2fbbc7333ae925363585 (11hr ago as of post) Issue.... if event == _IRQ_SCAN_RESULT: not passing event is returning ...
by PM-TPI
Fri Jun 05, 2020 7:38 pm
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 17
Views: 1487

Re: BLE Scan forever stops after 7+ Hours

Oh... they did backport it to v4.0 but they just re-used the same tag. Argh. This cursed chip. Anyway. To test this out. In your esp-idf repo, git fetch origin git checkout origin/release/v4.0 git reset --hard HEAD git submodule update --init --recursive git rev-parse HEAD The last line should be a...
by PM-TPI
Wed Jun 03, 2020 9:37 pm
Forum: ESP32 boards
Topic: Build micropython with IDF v4.0.1 error
Replies: 3
Views: 330

Build micropython with IDF v4.0.1 error

IDF v4.0.1 git hash 4c81978a3e2220674a432a588292a4c860eef27b error.... nts/wpa_supplicant/src/crypto/crypto_ops.o /mnt/c/tpi-dev/IDF4.0.1/esp-idf/components/wpa_supplicant/src/crypto/crypto_ops.c /mnt/c/tpi-dev/IDF4.0.1/esp-idf/components/wpa_supplicant/src/crypto/crypto_ops.c:54:41: error: 'ccmp_de...