Search found 642 matches

by OutoftheBOTS_
Wed Apr 10, 2019 7:12 am
Forum: ESP32 boards
Topic: Integrating Loboris port back to official uP ESP32 port
Replies: 33
Views: 2455

Re: Integrating Loboris port back to official uP ESP32 port

I think in the end Lobo has written a lot of high performance code for uPython that he has made MIT license. He hasn't received any finical gain and a number of commercial operators have used his port for their finical gain e.g. M5Stack. This is a big contribution to the community. Being MIT license...
by OutoftheBOTS_
Wed Apr 10, 2019 7:05 am
Forum: ESP32 boards
Topic: using multiple pins as PWM pin with D32 pro
Replies: 6
Views: 439

Re: using multiple pins as PWM pin with D32 pro

My stepper motor control is a bit more complex as I use the methods used by CNC firmware to achieve smooth acceleration and precise step counts. From Matty post above it looks like main stream Micro-python doesn't allow for different freq of PWM just different duty widths on the same freq as it only...
by OutoftheBOTS_
Tue Apr 09, 2019 9:19 pm
Forum: ESP32 boards
Topic: Integrating Loboris port back to official uP ESP32 port
Replies: 33
Views: 2455

Re: Integrating Loboris port back to official uP ESP32 port

Python drivers work at an ok speed providing the SPI screen is very low res but when using larger SPI displays like 320 X 240 it is a huge noticeable speed difference in LoBo display module.
by OutoftheBOTS_
Mon Apr 08, 2019 8:40 pm
Forum: MicroPython pyboard
Topic: PyB-to-PyB using I2C?
Replies: 24
Views: 6841

Re: PyB-to-PyB using I2C?

I briefly touched on implementing I2C slave on ESP32 (using Boris' implementation as a guide). The implementation should be reasonably straightforward. But 3935 should be resolved first since the API for I2C slave is not well defined... I did write in C a software I2C slave for a STM32F103 (AKA blu...
by OutoftheBOTS_
Mon Apr 08, 2019 8:30 pm
Forum: ESP32 boards
Topic: Integrating Loboris port back to official uP ESP32 port
Replies: 33
Views: 2455

Re: Integrating Loboris port back to official uP ESP32 port

It's possible parts of Display could be implemented in Python but I suspect fairly significant chunks of it will need to be implemented in C. A lot of it - drawing circles, manipulating bytes, font management etc - require high levels of performance to be usable. Measure first, of course, but a dis...
by OutoftheBOTS_
Sun Apr 07, 2019 9:51 pm
Forum: MicroPython pyboard
Topic: PyB-to-PyB using I2C?
Replies: 24
Views: 6841

Re: PyB-to-PyB using I2C?

Lobo port does have a full working I2C slave mode. I have tested a number of version of Micro-Python I2C slave and it is the only one that has worked as a standard I2C slave. The STM32 port does have I2C slave mode but the the MCU must be constantly testing for a transmission from the master or the ...
by OutoftheBOTS_
Sat Apr 06, 2019 8:45 pm
Forum: ESP32 boards
Topic: esp32 uPython webserver with SPIFFS uspport
Replies: 1
Views: 199

Re: esp32 uPython webserver with SPIFFS uspport

I have used this webserver with websockets and it works great https://github.com/jczic/MicroWebSrv
by OutoftheBOTS_
Thu Apr 04, 2019 9:51 pm
Forum: ESP32 boards
Topic: using multiple pins as PWM pin with D32 pro
Replies: 6
Views: 439

Re: using multiple pins as PWM pin with D32 pro

Not sure which port of Micro-Python your using?? The low level of PWM timers work like this: they are counters, you set how high the count up to the ARR(the FREQ) and you set how high the count gets to before switching the pin the CCR (the duty width). Most timers have many channels i.e they will ha...
by OutoftheBOTS_
Mon Apr 01, 2019 8:24 pm
Forum: ESP32 boards
Topic: Integrating Loboris port back to official uP ESP32 port
Replies: 33
Views: 2455

Re: Integrating Loboris port back to official uP ESP32 port

I fear Display will be difficult to merge upstream. MicroPython is lacking such a library but the implementation seems complex and difficult to extend; adding a new display driver wasn't intuitive to me. But maybe it warrants more attention? Regardless, until it can be implemented across multiple p...
by OutoftheBOTS_
Sun Mar 31, 2019 9:28 pm
Forum: Programs, Libraries and Tools
Topic: [Solved] Noob has questions about exec() and import()
Replies: 11
Views: 676

Re: Noob has questions about exec() and import()

First of all how about you tell us what your trying to achieve?

If it is simply writing code into a py file (i.e myscript_file.py) then loading it into RAM instead of having to type the script into the REPL then you can simply just use

Code: Select all

import myscript_file
This works perfectly for me :)