Search found 1144 matches

by jimmo
Mon Nov 25, 2019 2:06 am
Forum: General Discussion and Questions
Topic: How to "return" result from _IRQ_SCAN_RESULT
Replies: 1
Views: 159

Re: How to "return" result from _IRQ_SCAN_RESULT

Hi, The scan method runs asynchronously. So there's nothing to "return" to. Here are a couple of options: 1. Set it in a global variable, then wait for the global variable to be set: rssiValue = None def bt_irq(event, data): global rssiValue ..code to handle scan result... rssiValue = rssi bt.irq(bt...
by jimmo
Sat Nov 23, 2019 11:37 am
Forum: Development of MicroPython
Topic: Bypass password and key input in webrepl
Replies: 2
Views: 247

Re: Bypass password and key input in webrepl

I haven't tested this, but took a quick look at the code. As you can see in the bit that your highlighted, the relevant two lines are at the end. Webrepl has a current state (which is how it decides how to handle any incoming input). So it starts in STATE_PASSWD, and then transmits hte password prom...
by jimmo
Sat Nov 23, 2019 11:29 am
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 14
Views: 703

Re: Can't get my NeoPixels to turn on

I have some questions for you jimmo as you seem to be so good at answering questions. Thanks :) I have never wrote my own driver for neopixels but have wrote my own driver using SPI for APA102. I have read the data sheet for many of the ws2812 clones and understand how they work and the precise tim...
by jimmo
Sat Nov 23, 2019 4:29 am
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 14
Views: 703

Re: Can't get my NeoPixels to turn on

I can see that the driver is cpu frequency aware -- https://github.com/micropython/micropython/blob/master/ports/esp32/espneopixel.c -- but I have also seen reports that the timing isn't perfect, and perhaps the timing inaccuracies are worse at other frequencies. (The ws2812 is very sensitive to tim...
by jimmo
Fri Nov 22, 2019 10:16 pm
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 41
Views: 2993

Re: About BLE.gap_connect(esp32-based ubluetooth)

mczubel wrote:
Fri Nov 22, 2019 8:29 pm
In ble_uart_peripheral.py file, line 26, I have the AttributeError: 'BLE' object has no attribute 'gatts_set_buffer'
How fix it??
What firmware version are you using? (Hit Ctrl-D at the REPL and grab the version that's printed there, or just the filename that you used to flash it would be fine)
by jimmo
Fri Nov 22, 2019 10:15 pm
Forum: ESP32 boards
Topic: About BLE.gap_connect(esp32-based ubluetooth)
Replies: 41
Views: 2993

Re: About BLE.gap_connect(esp32-based ubluetooth)

Does this mean BLE will be functional, or at least partially functional for testing? What does the "no LAN or PPP" part mean? Is that referring to some kind of missing wifi capability? Both versions support WiFi. The issue is that we had to use a newer version of the IDF (the ESP32 SDK) to enable B...
by jimmo
Fri Nov 22, 2019 10:10 pm
Forum: ESP32 boards
Topic: W (201) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.
Replies: 2
Views: 362

Re: W (201) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.

This is just an informative warning, safe to ignore.

Menuconfig is part of the SDK that you use when writing ESP32 firmware in C. If you want to provide a custom board config for MicroPython, you can override this setting (Tinypico does this for example)
by jimmo
Fri Nov 22, 2019 9:57 am
Forum: ESP32 boards
Topic: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.
Replies: 16
Views: 635

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

Another note, not all ESP32 boards use the modules in the metal cans. For example the TinyPico, where you can see all four chips separately:
- the esp32
- spiflash
- spiram
- cp2102 (or similar, i forget exactly)
by jimmo
Fri Nov 22, 2019 9:56 am
Forum: ESP32 boards
Topic: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.
Replies: 16
Views: 635

Re: E (523) spiram: SPI RAM enabled but initialization failed. Bailing out.

ESP32 always has to have external spiflash. (With one exception, see note below) It optionally has external spiram. External here generally means still inside the metal can though. Note: There is an ESP32 variant (i think it's the D2WD) that does have internal flash. The ESP32 has a UART which Micro...
by jimmo
Fri Nov 22, 2019 9:36 am
Forum: General Discussion and Questions
Topic: [Solved]Using OTG USB and ST-Link USB on STM32L4R9I - DISCO
Replies: 10
Views: 428

Re: Using OTG USB and ST-Link USB on STM32L4R9I - DISCO

And about the CDC ACM serial device, I think it did not show up. This is because (i assume), when i type "screen /dev/ttyACM0" in the Ubuntu terminal, the screen was like below: If the ttyACM0 device wasn't there, then screen wouldn't run. What you're seeing is just that you're not receiving any da...