Search found 2714 matches

by Roberthh
Thu May 19, 2016 11:27 am
Forum: WiPy and CC3200 boards
Topic: machine.SPI.write() taking too long?
Replies: 15
Views: 9610

Re: machine.SPI.write() taking too long?

Obviously it is. I just wanted to point out, that the python part is often much slower than the low level drivers.
by Roberthh
Thu May 19, 2016 9:38 am
Forum: WiPy and CC3200 boards
Topic: machine.SPI.write() taking too long?
Replies: 15
Views: 9610

Re: machine.SPI.write() taking too long?

I was thinking of doing some raw test, by just toggling a GPIO pin. From tests I made with PyBoard I learned that the while loop plus function call would take about 6us per loop at 168 MHz (see https://github.com/robert-hh/SSD1963-TFT-Library-for-PyBoard, README.md, section Remarks). Since WiPy runs...
by Roberthh
Wed May 18, 2016 7:22 pm
Forum: WiPy and CC3200 boards
Topic: Onewire and DS18B20
Replies: 42
Views: 35192

Re: Onewire and DS18B20

It's '\x00' followed by the letter '4', 9 bytes in total.
If a byte contains a printable character, it's printed as such, and not the hex code.
by Roberthh
Wed May 18, 2016 6:36 pm
Forum: Hardware Projects
Topic: 10DOF Wing for Adafruit Huzzah ESP8266
Replies: 14
Views: 10026

Re: 10DOF Wing for Adafruit Huzzah ESP8266

Extending the discussion above about using const() and possible improvements: I loaded the BME280 driver to frozen byte code. Flash usage 5408 bytes, RAM usage after import 1440 bytes. Loading the same driver with the assignment replaced by const definitions: Flash usage 5394 bytes, RAM 1440 bytes R...
by Roberthh
Wed May 18, 2016 12:08 pm
Forum: Hardware Projects
Topic: 10DOF Wing for Adafruit Huzzah ESP8266
Replies: 14
Views: 10026

Re: 10DOF Wing for Adafruit Huzzah ESP8266

Hi All, I'm wondering if really frozen bytecode was tested and not frozen modules. With frozen bytecode I had no problem running a 600 LOC program, and I did not even test the limits or notice one. Since frozen bytecode resides in flash and the critical compile step is done during the creation of th...
by Roberthh
Fri May 13, 2016 7:54 pm
Forum: MicroPython pyboard
Topic: REPL not-accepting chars but does accept CNTRL-d/c
Replies: 3
Views: 1788

Re: REPL not-accepting chars but does accept CNTRL-d/c

Where did you put your little program,
main.py
boot.py
or another file, which is called by one of the above? I cannot reproduce your observation.
by Roberthh
Wed May 11, 2016 6:56 am
Forum: Drivers for External Components
Topic: Standard API for drivers?
Replies: 37
Views: 18022

Re: Standard API for drivers?

For many of us, the journey is the reward.
by Roberthh
Wed May 11, 2016 5:20 am
Forum: ESP8266 boards
Topic: [Huzzah Feather] Can't get WiFi connection
Replies: 4
Views: 3435

Re: [Huzzah Feather] Can't get WiFi connection

The latest version does not start webrepl in boot py any more. You have to start it manuslly or change boot.py.
by Roberthh
Tue May 10, 2016 8:00 pm
Forum: ESP8266 boards
Topic: Statement missing in response to help()
Replies: 1
Views: 1379

Statement missing in response to help()

The help() command is very useful. Just a minor thing is missing:
the line: sta_if.active(True)
Otherwise the example won't work.
Just a minor thing, and maybe not worth to mention.
by Roberthh
Tue May 10, 2016 12:39 pm
Forum: MicroPython pyboard
Topic: Can RAM be unloaded and over-written?
Replies: 2
Views: 1590

Re: Can RAM be unloaded and over-written?

My experience about that, from a users view: As soon as you do not need an object any more, it can be freed by garbage collection. - used gc.collect() frequently to manually perform a garbage collection. - avoid a high number of tiny and very big data objects. The latter may be hard to allocate, if ...