Search found 13 matches

by upymar
Sun Nov 03, 2019 12:05 pm
Forum: ESP8266 boards
Topic: how to extract numbers from a string
Replies: 3
Views: 302

Re: how to extract numbers from a string

Thank you, that works great!
by upymar
Sat Nov 02, 2019 10:21 pm
Forum: ESP8266 boards
Topic: how to extract numbers from a string
Replies: 3
Views: 302

how to extract numbers from a string

I'm trying to pass numbers from a received mqtt message to neopixel.

On my pc i got it to work with

Code: Select all

import re
msg = "rgb(124,95,8)"
r,g,b = re.findall('\d+',msg)
Unfortunately micropythons ure module doesn't know findall function.

Any Suggestionen?
by upymar
Sun Oct 27, 2019 8:14 pm
Forum: ESP8266 boards
Topic: Strange behaviour of WS2812 LED strip
Replies: 6
Views: 396

Re: Strange behaviour of WS2812 LED strip

Thanks for all your answers,

I have made a stupid mistake. I forgot to connect from gnd of the LED strip to the esp8266.
Now it's working fine.

Thanks again for your help.
by upymar
Sat Oct 26, 2019 6:03 pm
Forum: ESP8266 boards
Topic: Strange behaviour of WS2812 LED strip
Replies: 6
Views: 396

Re: Strange behaviour of WS2812 LED strip

I have also tested it with another esp8266 with the same result.

Does this help?
by upymar
Sat Oct 26, 2019 2:10 pm
Forum: ESP8266 boards
Topic: Strange behaviour of WS2812 LED strip
Replies: 6
Views: 396

Strange behaviour of WS2812 LED strip

Hello community, I connected a 1m WS2812 LED strip with 60 LEDs to my esp8266 on GPIO 0. I'm using a power supply with 5V and 3A directly connected to the LED strip. My code: from neopixel import NeoPixel from time import sleep pin = machine.Pin(0, machine.Pin.OUT) np = NeoPixel(pin, 60) for i in ra...
by upymar
Fri Oct 18, 2019 8:24 pm
Forum: ESP8266 boards
Topic: WS2812 led matrix with esp8266
Replies: 2
Views: 284

Re: WS2812 led matrix with esp8266

Thanks for your reply. What irritates me is that a german Amazon customer writes that the numbering of the leds starts from the top or the bottom depending if its an even or uneven row. Will the neopixel library work with that? And what about the adafruit bitmapfont library linked above? Will it wor...
by upymar
Thu Oct 17, 2019 12:51 pm
Forum: ESP8266 boards
Topic: WS2812 led matrix with esp8266
Replies: 2
Views: 284

WS2812 led matrix with esp8266

Hello, I am thinking about my next micropython esp8266 project and would like to try some led matrix. Would this item work? https://www.amazon.co.uk/Longruner-WS2812B-Digital-Flexible-Lighting/dp/B07KT1H481/ref=sr_1_1?keywords=neopixel+matrix&qid=1571316208&sr=8-1 I would like to use it for color ef...
by upymar
Fri Jun 15, 2018 12:29 pm
Forum: General Discussion and Questions
Topic: How to obtain a list of importable modules?
Replies: 21
Views: 9542

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: 21644

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: 21644

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?