Search found 255 matches

by Turbinenreiter
Sun Mar 12, 2017 4:21 pm
Forum: Hardware Projects
Topic: Module for MPU9150
Replies: 54
Views: 8800

Re: Module for MPU9150

The error is in this line of the code: https://github.com/micropython-IMU/micropython-mpu9x50/blob/master/mpu9150.py#L187 scale = 0.3 That's not a decimal, but a float. I vaguely remember the WiPy not having floating point support and the docs confirm that: http://docs.micropython.org/en/latest/wipy...
by Turbinenreiter
Tue Feb 21, 2017 10:03 am
Forum: The MicroPython pyboard
Topic: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses
Replies: 6
Views: 182

Re: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses

I checked the SPI mode again, changed my UNIX SPI library a bit, and am now sure that both devices sue the same mode. Then I played around a bit, changing the modes to be the same, then to be different. Nothing changed, still bad communication. Until I did a spi.deinit() before reseting the board. A...
by Turbinenreiter
Mon Feb 20, 2017 7:50 pm
Forum: The MicroPython pyboard
Topic: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses
Replies: 6
Views: 182

Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses

I'm using the pyboard as SPI slave and a Raspberry Pi as Master, both running MicroPython and I'm seeing a lot of weirdness going on. For example, I'm sending this (as byterray): [254, 202, 1, 0, 170, 15, 62, 32, 1] and get his on the pyboard: [126, 74, 1, 0, 42, 15, 62, 32, 0] That's a flip of the ...
by Turbinenreiter
Wed Feb 01, 2017 12:45 pm
Forum: The micro:bit
Topic: Code syntax error
Replies: 4
Views: 157

Re: Code syntax error

Listen to Dave not me. Don't know what I was thinking.
by Turbinenreiter
Tue Jan 31, 2017 10:53 pm
Forum: The micro:bit
Topic: Code syntax error
Replies: 4
Views: 157

Re: Code syntax error

Code: Select all

val = val + 1

short

Code: Select all

val =+ 1


//edit: this is bullshit, ignore it.
by Turbinenreiter
Sun Jan 29, 2017 3:43 pm
Forum: General Discussion and Questions
Topic: Implementing SPI on the UNIX port
Replies: 5
Views: 216

Re: Implementing SPI on the UNIX port

So python-periphery _works_. There is some modifications to be done, mostly because of ctypes vs. uctypes also some weirdness with ioctl. I have to press on with other work (I need to finish a paper, and I wanted to have this running for that), but as soon as I have time I will seriously look into i...
by Turbinenreiter
Sun Jan 29, 2017 11:53 am
Forum: General Discussion and Questions
Topic: Implementing SPI on the UNIX port
Replies: 5
Views: 216

Re: Implementing SPI on the UNIX port

Yeah, that makes sense. I thought I could use it without arguments to quickly test it, didn't think about it actually having a defined interface.

I'm going to try a different route today, doing it in Python, based on this: https://github.com/vsergeev/python-periphery
by Turbinenreiter
Sun Jan 29, 2017 11:07 am
Forum: ESP8266 boards
Topic: I2C improvements in 1.8.7
Replies: 3
Views: 238

Re: I2C improvements in 1.8.7

I also had a comparison with the CircuitPython API, since I ported those drivers to both forks, and I sincerely hope that all those improvements will be some day ported over to CircuitPython, because the MicroPython API is currently so much better. I haven't spent too much time in the CircuitPython...
by Turbinenreiter
Sun Jan 29, 2017 10:17 am
Forum: General Discussion and Questions
Topic: Implementing SPI on the UNIX port
Replies: 5
Views: 216

Re: Implementing SPI on the UNIX port

It's not there in extmod/machine_spi.c where I copied from either.

line 289, 330:
https://github.com/micropython/micropython/blob/master/extmod/machine_spi.c
by Turbinenreiter
Sat Jan 28, 2017 10:15 pm
Forum: General Discussion and Questions
Topic: Implementing SPI on the UNIX port
Replies: 5
Views: 216

Implementing SPI on the UNIX port

I started implementing SPI on the UNIX port for the Raspberry Pi, but I'm not having much luck. I get this compiler error: machine_spi.c:205:5: error: initialization from incompatible pointer type [-Werror] .init = mp_machine_lspi_init, But the code looks exactly like it does in the other SPI implem...

Go to advanced search