Search found 556 matches

by OutoftheBOTS_
Sat Apr 06, 2019 8:45 pm
Forum: ESP32 boards
Topic: esp32 uPython webserver with SPIFFS uspport
Replies: 1
Views: 98

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

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

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

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

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

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

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...
by OutoftheBOTS_
Wed Mar 27, 2019 9:12 pm
Forum: General Discussion and Questions
Topic: SDRAM module
Replies: 6
Views: 341

SDRAM module

Does anyone know if this really cheap 32meg SDRAM module can be made to work on a STM32 MCU https://www.aliexpress.com/item/256Mbit-SDRAM-module-suit-FPGA/32690093439.html?gps-id=pcDetailBottomMoreOtherSeller&scm=1007.13338.112237.000000000000000&scm_id=1007.13338.112237.000000000000000&scm-url=1007...
by OutoftheBOTS_
Tue Mar 26, 2019 11:49 pm
Forum: Programs, Libraries and Tools
Topic: [Solved] Noob has questions about exec() and import()
Replies: 11
Views: 370

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

Hopefully I can help and give correct answers and if I am incorrect someone will correct me :) First it is a little bit of a round about way you loading into RAM your code from code.py the following will do the same thing import code also I think your getting namespace incorrect MicroPython v1.10-13...
by OutoftheBOTS_
Sun Mar 24, 2019 9:12 pm
Forum: General Discussion and Questions
Topic: Target audience for MicroPython?
Replies: 51
Views: 1516

Re: Target audience for MicroPython?

I play in both C and Micro-python on micro controllers. I find MP strength is very fast development of code to a working finished product. I find C strength is very fast execution of code.