Search found 132 matches

by danielm
Sun Jun 18, 2017 5:08 pm
Forum: The WiPy and CC3200 boards
Topic: I2C with new hardware API on CC3200 port
Replies: 1
Views: 80

Re: I2C with new hardware API on CC3200 port

This code worked for me:

Code: Select all

i2c_scl = machine.Pin("GP12", mode=machine.Pin.ALT, alt = 5)
i2c_sda = machine.Pin("GP13", mode=machine.Pin.ALT, alt = 5)
i2c = machine.I2C(scl=i2c_scl, sda=i2c_sda, freq=100000)
by danielm
Sun Jun 18, 2017 11:23 am
Forum: The WiPy and CC3200 boards
Topic: I2C with new hardware API on CC3200 port
Replies: 1
Views: 80

I2C with new hardware API on CC3200 port

How to init (hardware) I2C interface via new hardware API on CC3200 port?
by danielm
Sat Jun 17, 2017 9:51 am
Forum: The WiPy and CC3200 boards
Topic: usocket.socket.settimeout() not working on CC3200 port
Replies: 0
Views: 55

usocket.socket.settimeout() not working on CC3200 port

I tested on my own build from 12.6.2017 using simple code: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.settimeout(5) s.bind(('', 80)) s.listen(5) conn, addr = s.accept() In this point s.accept() hangs indefinitely if there is no connection from other host. Some time ago I submitted GitHu...
by danielm
Wed Feb 15, 2017 5:21 pm
Forum: The MicroPython pyboard
Topic: pyboard with a VGA display
Replies: 9
Views: 1048

Re: pyboard with a VGA display

Do you have some photos of the board and working display to show us?
by danielm
Fri Dec 09, 2016 7:37 pm
Forum: General Discussion and Questions
Topic: Swissbit Micro-SD Power Fail protection
Replies: 0
Views: 2310

Swissbit Micro-SD Power Fail protection

Will Swissbit's Micro-SD Power Fail protection be effective when used with MicroPython? https://www.swissbit.com/products/nand-flash-products/cards/micro-sd-memory-cards/ I am looking for a way to avoid data corruption in case of unexpected power fail. I guess there is no way how to achieve this wit...
by danielm
Mon Nov 14, 2016 3:56 pm
Forum: Other Boards
Topic: MicroPython on USR-C322 (CC3200)
Replies: 1
Views: 886

Re: MicroPython on USR-C322 (CC3200)

I use similar modules - I think they are exactly the same from HW point of view. (e.g. http://www.alibaba.com/product-detail/CC3200-wifi-Module_60205166974.html?spm=a2700.7724838.0.0.jylGWm) Some pictures here: http://forum.micropython.org/viewtopic.php?f=5&t=966&p=11503&hilit=3d+printer...
by danielm
Sun Nov 13, 2016 6:55 pm
Forum: General Discussion and Questions
Topic: JSON string vs bytearray
Replies: 1
Views: 309

JSON string vs bytearray

What is the best approach when attempting to construct JSON string repeatedly in every cycle of main loop in case one wants to avoid memory allocation in every cycle? Could formatted string be somehow directly stored in pre-allocated bytearray? The JSON string always contains same keys, but lenght(n...
by danielm
Sun Nov 13, 2016 6:44 pm
Forum: General Discussion and Questions
Topic: Cross compiled module vs class inheritance
Replies: 4
Views: 1364

Re: Cross compiled module vs class inheritance

Thank you for your answers. I am working with CC3200 so unfortunately I cannot use frozen bytecode from flash. But it is good to know it works also in this case. I am using this approach for several days and there were no issues directly related to inheriting classes from cross-compiled modules. @py...
by danielm
Sun Nov 13, 2016 6:35 pm
Forum: General Discussion and Questions
Topic: Remove imported module from RAM
Replies: 5
Views: 744

Re: Remove imported module from RAM

Thanks, I will try that.
by danielm
Sat Nov 12, 2016 7:02 pm
Forum: General Discussion and Questions
Topic: Remove imported module from RAM
Replies: 5
Views: 744

Remove imported module from RAM

Is there any way how to remove imported module from RAM?

E.g. - it would make sense for untplib/NTPClient which is usually required to be used only once during boot process.

Class instantiated as an object can be deleted from RAM by "del" method?

Go to advanced search