Search found 6 matches

by upymar
Fri Jun 15, 2018 12:29 pm
Forum: General Discussion and Questions
Topic: How to obtain a list of importable modules?
Replies: 20
Views: 5298

Re: How to obtain a list of importable modules?

How do I get a list of available functions of a specific module? In another thread I read something about e.g. the ntptime module but didn't find anything in the documentation. So where do I get the information how to use modules and their functions which are not mentioned in the documentation? Than...
by upymar
Wed Sep 06, 2017 6:42 am
Forum: Drivers for External Components
Topic: Bosch BME280 driver
Replies: 42
Views: 16810

Re: Bosch BME280 driver

Well, your driver defaults to address 118 (0x76), so maybe try this: bme = bme280.BME280(i2c, address=119) Thank you so much, this did help me a lot. I changed your suggestion (that didn't work) bme = bme280.BME280(i2c, address=119) to bme = bme280.BME280(i2c=i2c, address=119) and it works. Thanks ...
by upymar
Tue Sep 05, 2017 6:30 am
Forum: Drivers for External Components
Topic: Bosch BME280 driver
Replies: 42
Views: 16810

Re: Bosch BME280 driver

Thanks for your reply.
deshipu wrote:Does i2c.scan() return anything?

Code: Select all

>>> import machine
>>> import bme280
>>> i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4))
>>> i2c.scan()
[119]
Does this help?
by upymar
Mon Sep 04, 2017 11:55 am
Forum: Drivers for External Components
Topic: Bosch BME280 driver
Replies: 42
Views: 16810

Re: Bosch BME280 driver

I tried it again with micropython release 1.9.2 on my esp8266 What has changed is that >>> import machine >>> import bme280 seems to work correctly now. But I am very unsure about the correct I2C wiring. I have a BME280 for I2C and SPI from adafruit that has the following pinout: VIN, 3Vo, GND, SCK,...
by upymar
Sat Jun 03, 2017 6:45 am
Forum: Drivers for External Components
Topic: Bosch BME280 driver
Replies: 42
Views: 16810

Re: Bosch BME280 driver

I just noticed that there is 1.9 release for esp8266.
Will I have more success with it getting the BME280 to work?
by upymar
Sat Feb 04, 2017 8:10 am
Forum: Drivers for External Components
Topic: Bosch BME280 driver
Replies: 42
Views: 16810

Re: Bosch BME280 driver

[quote="catdog2"]I have modified the driver quite a bit for the ESP8266: https://github.com/catdog2/mpy_bme280_esp8266 The main goal was to make It less memory hungry, especially during import. Worked I think. I only tested it with a BMP280 as I don't possess a BME280 yet.[/quote] I use NodeMCU with...