Search found 401 matches

by devnull
Wed Nov 27, 2019 12:12 pm
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 188

Re: _thread not being enabled

Thanks all this sewems to work:

Code: Select all

CFLAGS_EXTRA='-DMICROPY_PY_THREAD=1'
by devnull
Wed Nov 27, 2019 10:23 am
Forum: Programs, Libraries and Tools
Topic: MicroWebSrv2, new asynchronous Web server for MicroPython (+Routes +WebSockets +Template engine).
Replies: 11
Views: 787

Re: MicroWebSrv2, new asynchronous Web server for MicroPython (+Routes +WebSockets +Template engine).

Cant run this on SF6: Traceback (most recent call last): File "<stdin>", line 5, in <module> File "MicroWebSrv2/microWebSrv2.py", line 221, in StartManaged File "MicroWebSrv2/microWebSrv2.py", line 213, in StartManaged File "MicroWebSrv2/microWebSrv2.py", line 184, in StartInPool MicroWebSrv2Excepti...
by devnull
Tue Nov 26, 2019 10:40 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 188

Re: _thread not being enabled

Nope, just added that to my Gnumakefile and I still don't get threads.

Code: Select all

## THREADS
CFLAGS_MOD += -DMICROPY_PY_THREAD=1
Also added:

Code: Select all

## THREADING
MICROPY_PY_THREAD ?= 1
to mpconfigport.mk and that does not work either, not having much luck today :-(
by devnull
Tue Nov 26, 2019 10:36 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 188

Re: _thread not being enabled

I think so, found the entry commented out in my GNUMakefile !
by devnull
Tue Nov 26, 2019 9:51 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 188

Re: _thread not being enabled

Jimmo;

Ahh so it's changed, how do I add the plumbining to use my existing GNUmakefile ??
by devnull
Tue Nov 26, 2019 7:05 am
Forum: General Discussion and Questions
Topic: mozilla-iot working sample
Replies: 2
Views: 111

mozilla-iot working sample

Does anybody have some very simple device code that can be used with mozilla-iot gateway to save some time ?

Also info on the agent used and setup would be very helpful, the learning curve appears to be quite steep !
by devnull
Tue Nov 26, 2019 6:46 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 188

_thread not being enabled

As you can see I am making with _thread: make -j6 BOARD=PYBD_SF6 FROZEN_MANIFEST= FROZEN_MPY_DIR=/nfs/qnap/dev/uPython/bash/../build/micropython/micropython/ports/stm32/modules MICROPY_PY_THREAD=1 But it does not appear to be enabled: import MicroWebSrv2 --------------------------- - Python pkg Micr...
by devnull
Sat Nov 09, 2019 6:01 am
Forum: General Discussion and Questions
Topic: littlefs - advantages & disadvantages
Replies: 9
Views: 472

littlefs - advantages & disadvantages

search.php?keywords=littlefs&terms=all& ... mit=Search

The search did not bring up anything obvious, but what are the main advantages and disadvantages of littlefs (other than the name suggests it is little !)
by devnull
Fri Nov 08, 2019 11:18 am
Forum: General Discussion and Questions
Topic: waiting for an interrupt flag to be set
Replies: 11
Views: 682

Re: waiting for an interrupt flag to be set

Is there any difference / benefit to using a time.sleep in a tight loop rather than a pass ?

Code: Select all

while x = False:
   pass

while x = False:
   time.sleep_ms(10)