Search found 33 matches

by BrendanSimon
Sat May 06, 2017 11:32 am
Forum: Development of MicroPython
Topic: uasyncio scheduling algorithm
Replies: 10
Views: 1189

Re: uasyncio scheduling algorithm

This is great work Peter, and I personally think this has a place in the core MicroPython code base, one way or another. Any real-time (or pseudo real-time) system needs the ability to give tasks priorities. Two questions come to mind. 1. Why did you decide that your modifications would apply to low...
by BrendanSimon
Wed Mar 08, 2017 10:29 am
Forum: General Discussion and Questions
Topic: Is MicroPython considered stable to real world deployment (STM32)
Replies: 5
Views: 1202

Re: Is MicroPython considered stable to real world deployment (STM32)

Not really a big problem getting CPython for Linux based embedded systems. Can use a full Linux distro like Debian, or Armbian, or some of the more embedded distros based on buildroot or Yocto such as openwrt, etc. I'm really encouraged with these awesome testimonials re MicroPython. Now I'm super ...
by BrendanSimon
Mon Mar 06, 2017 11:16 am
Forum: General Discussion and Questions
Topic: Is MicroPython considered stable to real world deployment (STM32)
Replies: 5
Views: 1202

Re: Is MicroPython considered stable to real world deployment (STM32)

That's fantastic news !! That increases my comfort level to know there are real products, working in the field, in industries that require robust stability. Interesting list of pros. Apart from potentially "productivity", don't the other benefits also exist for C/C++ (with or without an widely used...
by BrendanSimon
Mon Mar 06, 2017 5:39 am
Forum: General Discussion and Questions
Topic: Simulating hardware for micropython application
Replies: 6
Views: 806

Re: Simulating hardware for micropython application

I'm thinking the simplest thing is to just use CPython, with wxPytohn and standard Cpython modules, and fake the hardware of interest at high level API. This can be used to run/test basic application logic and user interaction, and then do final checking on real hardware with MicroPython. This is n...
by BrendanSimon
Sun Mar 05, 2017 10:57 am
Forum: General Discussion and Questions
Topic: Simulating hardware for micropython application
Replies: 6
Views: 806

Re: Simulating hardware for micropython application

Are you suggesting the `machine` module would be imported to a CPython (e.g. wxPython) app? i.e. the app is a normal python app with a special `machine` module? Or maybe it runs in MicroPython but communicates with an another GUI app (C, python, java, ...), with comms via TCP/IP, pipes, sharedmem, ...
by BrendanSimon
Sun Mar 05, 2017 10:50 am
Forum: General Discussion and Questions
Topic: Is MicroPython considered stable to real world deployment (STM32)
Replies: 5
Views: 1202

Is MicroPython considered stable to real world deployment (STM32)

Is MicroPython ready for real world deployment (STM32) ? If I wanted to deploy a large number of devices and have them run reliably, would MicroPython be a risky choice? For example, if my work was developing a new embedded product (e.g. an IOT device or scientific lab device or industrial controll...
by BrendanSimon
Sun Mar 05, 2017 10:29 am
Forum: General Discussion and Questions
Topic: Simulating hardware for micropython application
Replies: 6
Views: 806

Simulating hardware for micropython application

Just wondering what the best way to simulate micropython apps on a PC with a GUI (e.g. wxPython Phoenix). I'm thinking of things like keypads, LCDs, LEDs, buttons/switches, Analog input/output. My work environment uses C for embedded and a Windows based C++ GUI framework to simulate the application...
by BrendanSimon
Fri Feb 03, 2017 11:20 am
Forum: Programs, Libraries and Tools
Topic: Help understanding ternary statement in py/objcomplex.c
Replies: 7
Views: 873

Re: Help understanding ternary statement in py/objcomplex.c

That's what I thought too -- that it was a Python ternary statement, but then double checked that it was a C file. But the code I've seen in MicroPython looks very well written, so I assumed it was correct and purposeful (but even the really good programmers are fallible) I also found this on stack...
by BrendanSimon
Fri Feb 03, 2017 10:39 am
Forum: Programs, Libraries and Tools
Topic: Help understanding ternary statement in py/objcomplex.c
Replies: 7
Views: 873

Help understanding ternary statement in py/objcomplex.c

I just saw this change in `py/objcomplex.c` (line 225). I have no idea what the ternary statement is supposed to do. Is it a bug or some unusual use of the conditional operator? - if (rhs_imag == 0) { - lhs_real = 1; + if (rhs_imag == 0 && rhs_real >= 0) { + lhs_real = 1 ? rhs_real == 0 : 0; Doesn'...
by BrendanSimon
Wed Dec 21, 2016 11:39 am
Forum: Programs, Libraries and Tools
Topic: lcd module that supports i2c interface
Replies: 11
Views: 2750

Re: lcd module that supports i2c interface

Yes I know, but the lcd I have is not SPI, is I2C :)