Search found 8 matches
- Fri Apr 03, 2020 9:35 am
- Forum: Pyboard D-series
- Topic: LIS3DH sensor with SPI
- Replies: 8
- Views: 5982
Re: LIS3DH sensor with SPI
Thanks so much for you help. sorry for bothering you again, but I was trying to implement it as you indicated me but i´m still getting errors. MicroPython v1.11-576-gd667bc642 on 2019-11-13; PYBD-SF6W with STM32F767IIK Type "help()" for more information. >>> import lis3dh >>> from machine import SPI...
- Wed Apr 01, 2020 3:52 pm
- Forum: Pyboard D-series
- Topic: LIS3DH sensor with SPI
- Replies: 8
- Views: 5982
Re: LIS3DH sensor with SPI
Hi, you were right i was having also problems with that. Thanks so much for your help. I could import correctly the library (and also the I2C is working without any issue) but I cannt get it to work with the SPI interface. >>> import lis3dh >>> from machine import SPI, Pin >>> Pin('EN_3V3').value(1)...
- Wed Apr 01, 2020 8:57 am
- Forum: Pyboard D-series
- Topic: LIS3DH sensor with SPI
- Replies: 8
- Views: 5982
Re: LIS3DH sensor with SPI
sorry, I was trying to convert the code but im getting always the error "AttributeError: 'module' object has no attribute 'LIS3DH_SPI'" >>> from machine import SPI, Pin >>> Pin('EN_3V3').value(1) >>> cs = machine.Pin('X5', machine.Pin.OUT) >>> spi=SPI(1) >>> spi.init(baudrate=100000, polarity=0, pha...
- Wed Apr 01, 2020 6:44 am
- Forum: Pyboard D-series
- Topic: LIS3DH sensor with SPI
- Replies: 8
- Views: 5982
Re: LIS3DH sensor with SPI
Hi,
I will try to rewrite the library as you indicated....thanks so much for your help!!!
I will try to rewrite the library as you indicated....thanks so much for your help!!!
- Tue Mar 31, 2020 5:24 pm
- Forum: Pyboard D-series
- Topic: LIS3DH sensor with SPI
- Replies: 8
- Views: 5982
LIS3DH sensor with SPI
Hi, I´m really new with micropython and I was trying to work with the LIS3DH sensor throught SPI but i cannt get it to work. This is the code that I was running: > MicroPython v1.11-576-gd667bc642 on 2019-11-13; PYBD-SF6W with STM32F767IIK Type "help()" for more information. >>> >>> from machine imp...
- Tue Mar 31, 2020 5:10 pm
- Forum: Pyboard D-series
- Topic: I2C Master-Slave
- Replies: 6
- Views: 4339
Re: I2C Master-Slave
Hi,
As you indicated I was trying to work with Master/Slave on 1 pyboard-d.
Thanks so much for the answer and the information. It helped me a lot!!
As you indicated I was trying to work with Master/Slave on 1 pyboard-d.
Thanks so much for the answer and the information. It helped me a lot!!
- Tue Mar 24, 2020 8:53 am
- Forum: Pyboard D-series
- Topic: I2C Master-Slave
- Replies: 6
- Views: 4339
Re: I2C Master-Slave
Hello pythoncoder,
thanks for the quick reply. Is it possible to do it, with the same pyboard as master-slave with the two I2C? or it is needed and extra device as in your case the (ESP8266)??
thanks for the quick reply. Is it possible to do it, with the same pyboard as master-slave with the two I2C? or it is needed and extra device as in your case the (ESP8266)??
- Tue Mar 24, 2020 8:24 am
- Forum: Pyboard D-series
- Topic: I2C Master-Slave
- Replies: 6
- Views: 4339
I2C Master-Slave
Hi all, i´m starting to work with Micropython and i´m having some questions about it. I was trying to test the I2C communication in my Pyboard, and for that, I joined the sda pins (X10, Y10) together, and also for the scl(pins X9 and Y9), and I was trying to configure one as master and the other a...