Search found 1938 matches

by jimmo
Sun Oct 25, 2020 11:51 pm
Forum: Development of MicroPython
Topic: Problem with MicroPython external C modules
Replies: 7
Views: 200

Re: Problem with MicroPython external C modules

I modified mine 'micropython.mk' adding ( to the start ) ----------- micropython.mk ---------- USERMOD_DIR='the path of my modules/example directory ' EXAMPLE_MOD_DIR := $(USERMOD_DIR) You shouldn't need to set USERMOD_DIR -- this is set by py.mk before importing your makefile fragment. I think the...
by jimmo
Sun Oct 25, 2020 11:43 pm
Forum: ESP32 boards
Topic: How to send messages using bluetooth
Replies: 1
Views: 72

Re: How to send messages using bluetooth

I want to send texts like a keyboard using Bluetooth. But since I'm new to esp32, I don't know where to approach it. Hi, It sounds like you want to make the ESP32 act as a Bluetooth (BLE) keyboard. Which is to say, implement the BLE HID service. Please see https://github.com/micropython/micropython...
by jimmo
Sun Oct 25, 2020 11:17 pm
Forum: ESP32 boards
Topic: Issue_Disappeared/Solved_for_now: ubluetooth.BLE.active(True) gives EOF error
Replies: 3
Views: 86

Re: ubluetooth.BLE.active(True) gives EOF error

Hi The output is "initial sucess" ........ and then it gives me an EOF timeout error Can you please confirm which version of MicroPython you're running (hit Ctrl-B at the REPL) and copy the output here. Also if you know the filename of the .bin file you flashed that would be helpful too. I think pro...
by jimmo
Sun Oct 25, 2020 11:07 pm
Forum: micro:bit boards
Topic: BBC micro:bit v2
Replies: 13
Views: 450

Re: BBC micro:bit v2

Oh that await would be great. I'm assuming it will basically sleep the thread till the event occurs? Yep! There's single threads, but the asyncio scheduler gives you co-operatively scheduled "tasks". And tasks can await (either on an event or outright sleeping) while other tasks are still running.
by jimmo
Sat Oct 24, 2020 4:50 am
Forum: ESP32 boards
Topic: bluetooth, send and receive raw data
Replies: 2
Views: 93

Re: bluetooth, send and receive raw data

I'm really not a bluetooth expert, but I wrote in the past some client-server programs to communicate between PCs using pybluez and the serial-like RFCOMM protocol. I'm trying to do the same thing with my ESP32, especially configured as server. I'm having a hard time finding examples about the usag...
by jimmo
Sat Oct 24, 2020 4:45 am
Forum: Development of MicroPython
Topic: Micropython Build Step by Step
Replies: 4
Views: 339

Re: Micropython Build Step by Step

HarryOz wrote:
Fri Oct 23, 2020 3:49 pm
I have a regulator that is turned on or off using an output pin and i would like to have the firmware pre define that pin to 0 so on startup the regulator is off.
The pin should be high-impedance by default, so an external weak pull-down resistor might be all you need?
by jimmo
Sat Oct 24, 2020 4:44 am
Forum: General Discussion and Questions
Topic: Disabling Flash file system
Replies: 7
Views: 170

Re: Disabling Flash file system

One last question, setting HAS_FLASH to 0 would that impact the ability to read/write flash from the app. One other requirement they have is to use a section of flash for some persistent data. My vote was to use the SPI flash that is on the board for this but they want to use the internal flash for...
by jimmo
Sat Oct 24, 2020 4:33 am
Forum: General Discussion and Questions
Topic: Running blocking code in timers
Replies: 1
Views: 53

Re: Running blocking code in timers

Depending on which board/port you're using, MicroPython does support threading, via the _thread module. However, I'd recommend against using it as threading is almost always more problematic than useful. My recommendation is to use asyncio. The latest version of MicroPython (v1.13) includes a much-i...
by jimmo
Fri Oct 23, 2020 11:43 am
Forum: ESP32 boards
Topic: micropython download
Replies: 4
Views: 124

Re: micropython download

Assuming it's this board -- https://www.jaycar.com.au/esp32-main-board-with-wifi-and-bluetooth-communication/p/XC3800 -- then it's a WROOM module, so no SPIRAM. From MicroPython's perspective, this is a "generic" module. I would recommend the v1.13 release -- http://micropython.org/resources/firmwar...
by jimmo
Fri Oct 23, 2020 11:39 am
Forum: Pyboard D-series
Topic: Pyboard D SPI DMA
Replies: 2
Views: 90

Re: Pyboard D SPI DMA

Does anyone know if SPI+DMA has been implemented on the Pyboard D All STM32 boards use DMA for SPI (see ports/stm32/spi.c). The issue here (and I suspect likely why this is relevant to you) is that the high-level Python functions are blocking. i.e. even though they use DMA internally, they block wa...