Search found 2160 matches

by pythoncoder
Sun Jan 21, 2018 7:41 am
Forum: Drivers for External Components
Topic: HTU21D temperature/humidity I2C sensor
Replies: 6
Views: 2222

Re: HTU21D temperature/humidity I2C sensor

The Sparkfun page states "This breakout board has built-in 4.7KΩ pullup resistors for I2C communications."
by pythoncoder
Sun Jan 21, 2018 7:24 am
Forum: General Discussion and Questions
Topic: Debugger for Micropython
Replies: 4
Views: 117

Re: Debugger for Micropython

@nikhiledutech I don't know your level of experience so apologies in advance if my comment below is stating the obvious. Running MicroPython under a C debugger will enable you to examine the operation of the Python VM, but that's a long stretch from debugging problems in your MicroPython source code...
by pythoncoder
Sun Jan 21, 2018 7:12 am
Forum: The MicroPython pyboard
Topic: Surprising DAC behavior
Replies: 3
Views: 76

Re: Surprising DAC behavior

Alas there is no library function to turn the buffer on or off. I think your idea of a series resistor is the simplest and achieves the same thing as disabling the buffer. The output impedance of the chip with buffer disabled is 15KΩ maximum, so a resistor of somewhere up to that value should do the...
by pythoncoder
Sat Jan 20, 2018 6:09 pm
Forum: Programs, Libraries and Tools
Topic: utime/pyb delay error
Replies: 2
Views: 51

Re: utime/pyb delay error

Or you can get really radical and use the inline assembler...
by pythoncoder
Sat Jan 20, 2018 6:07 pm
Forum: The MicroPython pyboard
Topic: best approach for an application config file
Replies: 11
Views: 2653

Re: best approach for an application config file

Agreed. There is also this issue which should be borne in mind. I've admired the elegance of Pickle since I first discovered Python but it has its limitations. But Pickle can handle virtually all Python objects whereas JSON cannot. Horses for courses, but I too would use JSON where possible.
by pythoncoder
Sat Jan 20, 2018 6:00 pm
Forum: General Discussion and Questions
Topic: Equivalent to asyncio.gather()
Replies: 11
Views: 235

Task cancellation

You might be interested in my approach to task cancellation too. The aim was to enable a coro to pause until a set of tasks had actually completed cancellation and to provide a means of checking the running status of individual tasks. Given the latency which can occur between issuing the pending exc...
by pythoncoder
Sat Jan 20, 2018 11:50 am
Forum: Programs, Libraries and Tools
Topic: micropython-lib - "distributed" uPython standard library
Replies: 20
Views: 9796

Re: micropython-lib - "distributed" uPython standard library

The master repository of micropython-lib is now at https://github.com/pfalcon/micropython-lib . Some modules also require my fork of MicroPython, https://github.com/pfalcon/micropython , and there will be more such modules in the future. Majority of modules of course remain compatible with the upst...
by pythoncoder
Sat Jan 20, 2018 10:00 am
Forum: General Discussion and Questions
Topic: Equivalent to asyncio.gather()
Replies: 11
Views: 235

Re: Equivalent to asyncio.gather()

The above library now includes a 'micro' implementation of asyncio.gather().
by pythoncoder
Sat Jan 20, 2018 8:21 am
Forum: ESP32 boards
Topic: I2C pins on NodeMCU-32S
Replies: 7
Views: 618

Re: I2C pins on NodeMCU-32S

OutoftheBOTS_ wrote:
Sat Jan 20, 2018 8:17 am
For ESP32 boards this is the only instructions that seem to work for ESP32 firmware and flashing it using windows compouter istead of Linux computer
Did you mean this forum post?
by pythoncoder
Sat Jan 20, 2018 8:16 am
Forum: The MicroPython pyboard
Topic: Erratic behaviour on ctrl-D
Replies: 3
Views: 106

Re: Erratic behaviour on ctrl-D

I've come to the conclusion that this is a hardware problem with one Pyboard. I replaced the USB cable, tried different USB ports, then tried another PC and the problem persists. The Pyboard is in one of Damien's anodized cases and has never been connected to external hardware - I use it downstairs ...