Search found 215 matches

by marfis
Mon Apr 04, 2016 4:12 pm
Forum: Other Boards
Topic: Micropython v1.6 REPL not working on STM32F429DISC?
Replies: 3
Views: 3473

Re: Micropython v1.6 REPL not working on STM32F429DISC?

yes - well hoihu is marfis.. :) but it is not obvious I agree.
by marfis
Thu Mar 31, 2016 9:31 pm
Forum: Other Boards
Topic: Porting to STM32L476Discovery/LimiFrog
Replies: 44
Views: 41205

Re: Porting to STM32L476Discovery/LimiFrog

Did you manage to support the internal OpAmps as well?
by marfis
Sun Mar 27, 2016 11:39 am
Forum: ESP8266 boards
Topic: i2c multi-byte read for ESP8266? (e.g. RTC1307)
Replies: 18
Views: 15873

Re: i2c multi-byte read for ESP8266? (e.g. RTC1307)

sorry i wrongly assumed it is a true memory mapping i2c sensor whereas it seems to use a register pointer that needs to be written first. So even if memread was present it wouldn't be correct.

Actually I think your code should work. did you check with a logic analyser?
by marfis
Sun Mar 27, 2016 9:04 am
Forum: ESP8266 boards
Topic: i2c multi-byte read for ESP8266? (e.g. RTC1307)
Replies: 18
Views: 15873

Re: i2c multi-byte read for ESP8266?

for any memory mapped I2C devices you should use readfrom_mem or mem_read.

This handles the correct repeated start transfer conditions after the write of address.

something like
i2c.mem_read(0x68,0,7)
by marfis
Thu Mar 24, 2016 12:49 pm
Forum: General Discussion and Questions
Topic: Learning ExtInt interrupts
Replies: 3
Views: 3314

Re: Learning ExtInt... ???

check out the doc:
https://micropython.org/doc/module/pyb/ExtInt

you'll notice that your callback must provide one argument. And in the setup function you have to remove the "()" from call.
by marfis
Thu Mar 24, 2016 12:40 pm
Forum: Other Boards
Topic: Micropython v1.6 REPL not working on STM32F429DISC?
Replies: 3
Views: 3473

Re: Micropython v1.6 REPL not working on STM32F429DISC?

V1.6 has the USB interrupt concept changed, the VCP HAL driver was configured to use the start-of-frame (SOF) irqs for the rx/tx events instead of TIM3. Mabe that has something to do with it.
by marfis
Wed Mar 23, 2016 10:25 pm
Forum: Hardware Projects
Topic: SenseHAT with PyBoard
Replies: 3
Views: 5676

SenseHAT with PyBoard

Uses the Custom interface board (described http://forum.micropython.org/viewtopic.php?f=5&t=1268 ) to connect a Pyboard with a SenseHAT board (https://www.raspberrypi.org/products/sense-hat/). But you can of course also manually wire the I2C bus, 3V3 and 5V to the SenseHat and avoid the interface bo...
by marfis
Wed Mar 16, 2016 2:30 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: decimal numbers not supported
Replies: 29
Views: 30305

Re: SyntaxError: decimal numbers not supported

@jobbyworld: Most likely you can use your sensors with fixed point, see for example https://github.com/micropython/Micropython/pull/1843 and other drivers which implement both fixed point and floating point support. Most of the time the only difference is one line of code. In the link above was also...
by marfis
Fri Feb 12, 2016 8:17 am
Forum: Drivers for External Components
Topic: TSL2561 Digital Light Sensor
Replies: 4
Views: 7864

Re: TSL2561 Digital Light Sensor

Regarding your question about pow() implementation in fixed points arithmetics: My preferred way is to program a generic lookup table function that takes x,y fitting point pairs in a list. Plot your desired formula, choose your fitting points and transfer these to your code. You end up having a simp...
by marfis
Fri Feb 12, 2016 7:23 am
Forum: General Discussion and Questions
Topic: Optimising Python speed tutorial
Replies: 7
Views: 6659

Re: Optimising Python speed tutorial

A really useful and competent writeup. Thanks a lot for sharing.