Wipy with BMP180 sensor

Questions and discussion about The WiPy 1.0 board and CC3200 boards.
Target audience: Users with a WiPy 1.0 or CC3200 board.
wipyjan
Posts: 1
Joined: Sat Jan 02, 2016 9:53 am

Wipy with BMP180 sensor

Postby wipyjan » Sat Jan 02, 2016 10:54 am

Hi,

Was anybody get working Wipy with BMP180 sensor with drivers from https://github.com/micropython-IMU/micropython-bmp180 ?

Best Regards

Jan

Turbinenreiter
Posts: 260
Joined: Sun May 04, 2014 8:54 am

Re: Wipy with BMP180 sensor

Postby Turbinenreiter » Thu Jan 07, 2016 4:39 pm

I wrote that lib.
What's your problem?

I guess you will have to rename stuff, i.e. chang 'pyb' to 'machine' - the API changed. See for the new names:
http://micropython.org/resources/docs/e ... e.I2C.html
You will have to subsitute:
'pyb' - 'machine'
'mem_write' - 'writeto_mem'
'mem_read' - 'readfrom_mem'

Let me know if it works out and if so I would like to merge it. If not I'm here to help.

I will look for someone to shout at for having incompatible APIs on different ports. That sucks.

User avatar
pythoncoder
Posts: 1644
Joined: Fri Jul 18, 2014 8:01 am

Re: Wipy with BMP180 sensor

Postby pythoncoder » Fri Jan 08, 2016 7:11 am

Turbinenreiter wrote:... I will look for someone to shout at for having incompatible APIs on different ports. That sucks.
The API's are in the process of being standardised. The aim is for the Pyboard specific pyb to be replaced by a more generic machine module, with pyb being retained for compatibility (at least for a period).

I'm not looking forward to porting everything I've written but I can see the logic behind the move.
Peter Hinch

maxlock
Posts: 4
Joined: Sat Sep 17, 2016 7:07 pm

Re: Wipy with BMP180 sensor

Postby maxlock » Sat Oct 08, 2016 5:03 am

FYI for anyone stumbling across this thread I ported a bmp180 lib to machine here:

https://github.com/micropython-IMU/micropython-bmp180

Works fine on my esp8266.

-Max.

matrixprogrammer
Posts: 1
Joined: Fri Mar 03, 2017 12:41 am

Re: Wipy with BMP180 sensor

Postby matrixprogrammer » Fri Mar 03, 2017 1:04 am

If still interested, I've posted a working code for BMP180 sensor to WiPy2 board (should work on original WiPy).

https://github.com/matr1xprogrammer/mic ... -bmp180.py

Cheers,
Marlon


Return to “The WiPy and CC3200 boards”

Who is online

Users browsing this forum: No registered users and 1 guest