Search found 530 matches

by Damien
Mon Jul 10, 2017 6:27 am
Forum: ESP8266 boards
Topic: SPI.LBS or SPI.MBS use on ESP8266
Replies: 1
Views: 111

Re: SPI.LBS or SPI.MBS use on ESP8266

The firstbit argument to the SPI constructor is not yet implemented. One way around this is to convert the data before you send it, but that's probably too computationally expensive.
by Damien
Sun Jul 09, 2017 6:41 am
Forum: General Discussion and Questions
Topic: converting to/from 32/64-bit float
Replies: 5
Views: 195

Re: converting to/from 32/64-bit float

The array module allows you to convert between bytes/float/double, but it's pretty similar to struct, and won't do the 32/64 bit conversion that you want. The C functions to do conversion between 32/64 bit are available in the libgcc.a library, so that's why the (broken) implementations were removed...
by Damien
Sun Jul 09, 2017 6:35 am
Forum: The MicroPython pyboard
Topic: Dead On Arrival
Replies: 4
Views: 196

Re: Dead On Arrival

The normal behaviour of a pyboard (PYB or PYBLITE) is to flash the green LED very briefly when it starts up. If it doesn't do this then it could be broken. Try doing a factory reset by following these instructions: http://docs.micropython.org/en/latest/pyboard/pyboard/tutorial/reset.html The board s...
by Damien
Sun Jul 09, 2017 6:28 am
Forum: ESP8266 boards
Topic: Feedback on uart_swap implementation
Replies: 3
Views: 240

Re: Feedback on uart_swap implementation

The way that this functionality would be exposed on the Python side is through the UART constructor, being able to specify explicitly the tx and rx pins. The usual way to access the UART peripheral is via: uart = machine.UART(0, 9600) This will configure the UART on the default pins. To put it on ot...
by Damien
Thu Jul 06, 2017 12:46 pm
Forum: ESP32 boards
Topic: Question about machine.idle()
Replies: 3
Views: 186

Re: Question about machine.idle()

I don't think power saving features are yet supported by the ESP IDF. The only thing I know of that will reduce power consumption is to lower the clock speed. It's set at 240MHz by default, but if you edit the sdkconfig.h file you can change it to 80MHz or 160MHz.
by Damien
Thu Jul 06, 2017 4:07 am
Forum: ESP8266 boards
Topic: ESP8266 RTC memory ?
Replies: 7
Views: 659

Re: ESP8266 RTC memory ?

@gdr what do you do when you "restart board"? I've tested your code and it works (the memory is retained) when the esp8266 is hard-reset (using the RST button on the Adafruit Feather Huzzah board). The memory is also retained after waking from deepsleep.
by Damien
Fri Jun 30, 2017 3:31 am
Forum: ESP8266 boards
Topic: Firmware Modification: REPL output without raising error
Replies: 2
Views: 129

Re: Firmware Modification: REPL output without raising error

The easiest way is to just use printf (in C) or print (in Python). That will go to the REPL output. Actually, if you want to do it in C then the recommended way is to use mp_printf(&mp_plat_print, <fmt spec>, <var args>), which is just like printf but will go via the standard MicroPython output....
by Damien
Wed Jun 28, 2017 2:53 am
Forum: Development of MicroPython
Topic: Debugging a memory problem
Replies: 9
Views: 625

Re: Debugging a memory problem

After some more debugging we realized that this object contains pointers to previously allocated object and the next object in line - but when the object is removed from the list its "prev" and "next" pointers are not zeroed - this implementation is in the external library. Sinc...
by Damien
Wed Jun 28, 2017 2:41 am
Forum: ESP8266 boards
Topic: unexpected network behavior with release 1.9
Replies: 8
Views: 497

Re: unexpected network behavior with release 1.9

@Capstan: are you using pre-built firmware from micropython.org/download, or are you compiling it yourself?
by Damien
Tue Jun 27, 2017 6:33 am
Forum: General Discussion and Questions
Topic: weird behaviour breaking from a nested loop
Replies: 2
Views: 194

Re: weird behaviour breaking from a nested loop

This issues has been fixed in the latest version of the code.

Go to advanced search