Search found 2163 matches

by dhylands
Sun Feb 19, 2017 7:47 pm
Forum: General Discussion and Questions
Topic: Timeout a Generic Function
Replies: 6
Views: 109

Re: Timeout a Generic Function

I created a complete example (which doesn't seem to work) and added a comment to this thread:
https://github.com/micropython/micropython/pull/2878
by dhylands
Sun Feb 19, 2017 6:34 pm
Forum: ESP8266 boards
Topic: Pin interrupts triggering errantly?
Replies: 2
Views: 4185

Re: Pin interrupts triggering errantly?

I highly recommend that anybody dealing with real physical switches read this:
http://www.ganssle.com/debouncing.htm
by dhylands
Sat Feb 18, 2017 7:56 am
Forum: General Discussion and Questions
Topic: Timeout a Generic Function
Replies: 6
Views: 109

Re: Timeout a Generic Function

For functions which you don't control, you'd probably need to use the new soft-irq capability and schedule a soft-irq which throws an exception. This assume that the code doesn't catch all exceptions. The soft-irq functionality hasn't landed yet but probably will soon. See: https://github.com/microp...
by dhylands
Tue Feb 14, 2017 8:44 pm
Forum: The MicroPython pyboard
Topic: SPI and DMA
Replies: 2
Views: 91

Re: SPI and DMA

Well, the big advantage is that the DMA engine can feed the data and doesn't get slowed down by things like interrupts or other processing happening on the system. I know that if you don't use DMA, it's possible to underflow on the sdcard FIFO, for example, if just doing using the CPU. I would also ...
by dhylands
Tue Feb 14, 2017 5:14 pm
Forum: General Discussion and Questions
Topic: Standalone version for ARM-CortexM7
Replies: 3
Views: 98

Re: Standalone version for ARM-CortexM7

If you build MicroPython using the BOARD=STM32F7DISC then it's going to build a standalone image, where it assumes that its the only SW on the board. I suspect that you're running uclinux and not really linux. We don't currently have any targets for uclinux. Just regular linux (in which case you'd u...
by dhylands
Mon Feb 13, 2017 8:44 pm
Forum: ESP8266 boards
Topic: ESP8266 soft-reset after uos.uname()
Replies: 2
Views: 104

Re: ESP8266 soft-reset after uos.uname()

I believe that this was very recently fixed. See:
https://github.com/micropython/micropython/issues/2862
by dhylands
Mon Feb 13, 2017 9:00 am
Forum: ESP8266 boards
Topic: [SOLVED] protect python code
Replies: 4
Views: 148

Re: protect python code

Thanks - I updated my post. I'm obviously getting too old to rely on my memory any more :)
by dhylands
Mon Feb 13, 2017 1:06 am
Forum: ESP8266 boards
Topic: [SOLVED] protect python code
Replies: 4
Views: 148

Re: protect python code

You can build the bytecode compiler: mpy-cross and use that to compile .py files into .mpy bytecode files.
by dhylands
Sat Feb 11, 2017 10:21 am
Forum: Development of MicroPython
Topic: Travis coveralls build in forked repo always fails
Replies: 1
Views: 49

Re: Travis coveralls build in forked repo always fails

I always see that as well. I haven't looked into what might be causing it.

Go to advanced search