Not sure how similar they are, but maybe this helps:
https://github.com/micropython-IMU/micropython-lsm9ds0
Search found 288 matches
- Tue Jun 13, 2017 9:19 pm
- Forum: ESP8266 boards
- Topic: ESP8266 HUZZAH breakout + LSM9DS1 9DOF
- Replies: 7
- Views: 6418
- Fri Jun 02, 2017 8:03 pm
- Forum: General Discussion and Questions
- Topic: A Tale of Two APIs
- Replies: 5
- Views: 6472
A Tale of Two APIs
I believe that MicroPythons hardware API is its most important feature. There only few languages that you can use on microcontrollers, mostly by the virtue of their compiler suite - Rust, ADA and D are examples. But getting the language to run on a microcontroller is just the first step, the much mo...
- Mon Apr 24, 2017 10:48 am
- Forum: ESP32 boards
- Topic: Esp32 make is not working
- Replies: 7
- Views: 7583
- Sun Mar 12, 2017 4:21 pm
- Forum: Hardware Projects
- Topic: Module for MPU9150
- Replies: 54
- Views: 55081
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...
- Tue Feb 21, 2017 10:03 am
- Forum: MicroPython pyboard
- Topic: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses
- Replies: 14
- Views: 12872
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...
- Mon Feb 20, 2017 7:50 pm
- Forum: MicroPython pyboard
- Topic: Consistent bitflips when using pyboard as SPI slave and other SPI weirdnesses
- Replies: 14
- Views: 12872
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 ...
- Wed Feb 01, 2017 12:45 pm
- Forum: micro:bit boards
- Topic: Code syntax error
- Replies: 5
- Views: 6048
- Tue Jan 31, 2017 10:53 pm
- Forum: micro:bit boards
- Topic: Code syntax error
- Replies: 5
- Views: 6048
Re: Code syntax error
Code: Select all
val = val + 1
Code: Select all
val =+ 1
- Sun Jan 29, 2017 3:43 pm
- Forum: General Discussion and Questions
- Topic: Implementing SPI on the UNIX port
- Replies: 5
- Views: 4642
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...
- Sun Jan 29, 2017 11:53 am
- Forum: General Discussion and Questions
- Topic: Implementing SPI on the UNIX port
- Replies: 5
- Views: 4642
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
I'm going to try a different route today, doing it in Python, based on this: https://github.com/vsergeev/python-periphery