Search found 33 matches

by BrendanSimon
Sun Dec 04, 2016 10:53 am
Forum: Development of MicroPython
Topic: Use of Zephyr
Replies: 0
Views: 3893

Use of Zephyr

I was looking at recent commits and noticed something called Zephyr. I googled Zephyr and it seems like a very capable RTOS (with some advantages over FreeRTOS, mainly the Apache licensing, etc). The `zephyr` source directory doesn't seem to have much in it, so I've got a few questions. Is `Zephyr`...
by BrendanSimon
Fri Dec 02, 2016 12:20 pm
Forum: Other Boards
Topic: Olimex STM32-E407
Replies: 12
Views: 13930

Re: Olimex STM32-E407

No complaints with Olimex at all. I have a number of their boards and they are committed to open source software and hardware. They have even moved from using Eagle to KiCad :) OK. So what do we have to do to get Ethernet up and running of the E407 ? And a side question, can I run any USB WiFi dongl...
by BrendanSimon
Fri Dec 02, 2016 12:01 pm
Forum: General Discussion and Questions
Topic: CoAP on micropython?
Replies: 4
Views: 10395

Re: CoAP on micropython?

Any updated news on a CoAP implementation for MicroPython ??
by BrendanSimon
Mon Nov 28, 2016 10:55 am
Forum: General Discussion and Questions
Topic: Where is machine I2C.MASTER ??
Replies: 3
Views: 6140

Re: Where is machine I2C.MASTER ??

Thanks Dave. I will try out your suggestions. I had a look at the link you provided, but it doesn't mention anything about a bus parameter of -1. I presume the first argument of the construction `scl` can be set to `1` to setup a bit-bang I2C object (not that I want to do that. I'd rather use hardwa...
by BrendanSimon
Sun Nov 27, 2016 12:20 pm
Forum: General Discussion and Questions
Topic: Where is machine I2C.MASTER ??
Replies: 3
Views: 6140

Where is machine I2C.MASTER ??

I have the very latest git master installed on an Olimex E407 board (STM32F4). The following page (and other pages related to I2C) reference the name `I2C.MASTER`, but I don't see this with the `machine` module. http://docs.micropython.org/en/latest/wipy/library/machine.I2C.html However it does exis...
by BrendanSimon
Wed Nov 09, 2016 9:13 am
Forum: General Discussion and Questions
Topic: for loop within interrupt callback
Replies: 16
Views: 13880

Re: for loop within interrupt callback

Yes. I understand ISRs should be kept short and simple, but I wouldn't call iterating over a list complex. My (naive) thought was that it would translate to something like: * list is an array of pointers (references to objects) * the for loop would just get those pointers one by one and use them (p...
by BrendanSimon
Tue Nov 08, 2016 9:35 pm
Forum: General Discussion and Questions
Topic: for loop within interrupt callback
Replies: 16
Views: 13880

Re: for loop within interrupt callback

OK thanks :) Using range may help to some extent, but it still doesn't work with lists even if the list is pre-allocated :( Should it work with pre-allocated lists? Or are lists just not allowed period ? stuff = ['a','b','c'] class Keypad(): def __init__(self): self.timer = Timer(5, freq=1) self.stu...
by BrendanSimon
Tue Nov 08, 2016 12:23 pm
Forum: General Discussion and Questions
Topic: for loop within interrupt callback
Replies: 16
Views: 13880

Re: for loop within interrupt callback

OK. Here is a simple test program, which doesn't work for me. ##============================================================================ ## ## test_timer module for MicroPython. ## ##============================================================================ import micropython from pyb import P...
by BrendanSimon
Mon Nov 07, 2016 12:20 pm
Forum: General Discussion and Questions
Topic: for loop within interrupt callback
Replies: 16
Views: 13880

for loop within interrupt callback

I have a timer interrupt callback at 40Hz. It's a keypad scanner which does the normal row/column scanning. I had a list of Pin objects, and I was going to iterate over the list to check each column pin. I soon found out that the timer callback was executing in interrupt context, and that python obj...
by BrendanSimon
Mon Sep 19, 2016 11:10 am
Forum: Programs, Libraries and Tools
Topic: pyserial module/interface for embedded boards
Replies: 4
Views: 6126

Re: pyserial module/interface for embedded boards

Interesting. I don't view pyserial as being for linux. I view it as a cross-platform module to access serial/com ports. Most, if not all, of the standard API seems OS agnostic to me. https://pythonhosted.org/pyserial/pyserial_api.html There is a platform specific section, which has 4 methods -- nonb...