Search found 1046 matches

by Roberthh
Fri Oct 19, 2018 3:56 pm
Forum: General Discussion and Questions
Topic: smallest, basic devices
Replies: 8
Views: 139

Re: smallest, basic devices

No, the espruino pico has no wifi, just an STM32F401 CPU (http://www.espruino.com/Pico)
You could also look at the teensy 3.2 or one of the PIC16bit CPU's, for which a bujild of MicroPython exists.
by Roberthh
Fri Oct 19, 2018 1:10 pm
Forum: ESP32 boards
Topic: TypeError:argument has wrong type
Replies: 2
Views: 43

Re: TypeError:argument has wrong type

@alexmerchant You are still in the wrong forum and writing for the wrong Micropython dialect. You are using a SiPy board form Pycom. The forum for these board is at https://forum.pycom.io/. There is also the link to the matching documentation https://docs.pycom.io/
by Roberthh
Thu Oct 18, 2018 1:52 pm
Forum: General Discussion and Questions
Topic: Function with variable parameters in viper emitter
Replies: 2
Views: 48

Re: Function with variable parameters in viper emitter

I do not know the answer, unless you have a special "out of band" value for data. If data is a byte value, e.g. 256. Otherwise I would make two functions for reading and writing.
by Roberthh
Tue Oct 16, 2018 12:29 pm
Forum: General Discussion and Questions
Topic: Allocation when slicing memoryview instance
Replies: 5
Views: 85

Re: machine.I2C: allocation reading into pre-allocated buffer

I am also confused by the follwing, which I stumbled over a few days (or weeks) ago, and which did not meet my expectation: >>> s="1234567890" >>> m=memoryview(s) >>> m[0:2] <memoryview> >>> m[0] 49 >>> x=m[0:2] >>> x <memoryview> >>> s[0:2] '12' >>> for _ in m[0:2]: ... _ ... 49 50 I expeceted m[0:...
by Roberthh
Mon Oct 15, 2018 7:48 pm
Forum: Drivers for External Components
Topic: Bidirectional communication using I2C
Replies: 5
Views: 104

Re: Bidirectional communication using I2C

@pythoncoder That looks very impressive. And I learned two new sayings.
by Roberthh
Fri Oct 12, 2018 1:29 pm
Forum: ESP32 boards
Topic: How to not run boot.py?
Replies: 8
Views: 169

Re: How to not run boot.py?

Depending on the board it might be control line setting of PuTTY. Set PuTTY to Flow control = None.
It is under Confguration->Connection->Serial->Flow Control
by Roberthh
Fri Oct 12, 2018 1:24 pm
Forum: ESP32 boards
Topic: How to not run boot.py?
Replies: 8
Views: 169

Re: How to not run boot.py?

The ESP32 has an internal pull-up for GPIO0. That ensures proper operation if it is left floating. So I guess you have something connected to GPIO0 which pulls it low. Please check your wiring.
by Roberthh
Fri Oct 12, 2018 11:50 am
Forum: ESP32 boards
Topic: How to not run boot.py?
Replies: 8
Views: 169

Re: How to not run boot.py?

What you see is the built-in bootloader of the ESP32 chip, which starts when at Power-up or reset GPIO0 is connected to GND or at low level. So please check the GPIO0 connection. This is nothing which can be changed by the MicroPython firmware.
by Roberthh
Fri Oct 12, 2018 5:28 am
Forum: General Discussion and Questions
Topic: Python and MicroPython compatibility
Replies: 3
Views: 112

Re: Python and MicroPython compatibility

You can bundle functions with differ in separate modules and import either of them, depending on the python version.
by Roberthh
Thu Oct 11, 2018 6:58 pm
Forum: General Discussion and Questions
Topic: Python and MicroPython compatibility
Replies: 3
Views: 112

Re: Python and MicroPython compatibility

you could use:
const = lambda x:x
to avoid re-doing const statements. and you can query like:
if sys.implementation.name == "micropython":
......
to implement variants.