Search found 579 matches

by OutoftheBOTS_
Mon Apr 08, 2019 8:40 pm
Forum: MicroPython pyboard
Topic: PyB-to-PyB using I2C?
Replies: 24
Views: 6342

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: 1612

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: 6342

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: 130

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: 282

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: 1612

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: 449

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 :)
by OutoftheBOTS_
Sat Mar 30, 2019 9:40 pm
Forum: General Discussion and Questions
Topic: SDRAM module
Replies: 6
Views: 389

Re: SDRAM module

Thanks a lot this answers my question.

Not that I need 32meg of SDRAM it would be an interesting learning curve for me to buy 1 of these cheap modules and made it work :)
by OutoftheBOTS_
Sat Mar 30, 2019 8:17 am
Forum: General Discussion and Questions
Topic: SDRAM module
Replies: 6
Views: 389

Re: SDRAM module

I have used the FMSC peripheral to write to the RAM of a TFT in 16bit parallel in C. See this code https://github.com/OutOfTheBots/ili9341_16bit_touch was part of the development for this video https://www.youtube.com/watch?v=H51OzQl3BC8&t=8s Do you know for sure if the FSMC will support SDRAM or on...
by OutoftheBOTS_
Wed Mar 27, 2019 9:30 pm
Forum: Programs, Libraries and Tools
Topic: [Solved] Noob has questions about exec() and import()
Replies: 11
Views: 449

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

I add the the reload function to my boot.py so that it sets up during boot up here is my boot.py # This file is executed on every boot (including wake-boot from deepsleep) import sys, gc sys.path[1] = '/flash/lib' def reload(mod): mod_name = mod.__name__ del sys.modules[mod_name] gc.collect() return...