Search found 4 matches

by djelau
Mon May 03, 2021 9:31 pm
Forum: General Discussion and Questions
Topic: touchPad on Pin 2 (ESP32)
Replies: 3
Views: 3855

Re: touchPad on Pin 2 (ESP32)

Hello,

Pin pulled up or pulled down may be the cause. Your signal must be floating.
by djelau
Mon Mar 29, 2021 10:50 pm
Forum: Programs, Libraries and Tools
Topic: Slice list in neopixel object
Replies: 3
Views: 2114

Re: Slice list in neopixel object

Finally the following gave me what I want: >>> neopxl.buf bytearray(b'\x00\x00\x00\x00\x01\x00\x00\x01\x00\x00\x01\x00\x00\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') or >>>neopxl.buf[0:6] bytea...
by djelau
Sat Mar 27, 2021 12:59 am
Forum: Programs, Libraries and Tools
Topic: Slice list in neopixel object
Replies: 3
Views: 2114

Re: Slice list in neopixel object

Thank for your answer. Here, this is a list of tuple thus I should be able to change the position of each element in this list. Isn't it ? Of course I couldn't change the content of each element since this is tuple (but I don't want to). Create a copy like that works neopxlList = list(neopxl) and I ...
by djelau
Thu Mar 25, 2021 10:31 am
Forum: Programs, Libraries and Tools
Topic: Slice list in neopixel object
Replies: 3
Views: 2114

Slice list in neopixel object

Hi everyone, I am new to the forum. I'm very new in Python and more in micropython. Perhaps my question is an evidence for some of you, I hope. I use embedded NeoPixel lib of micropython for ESP8266. I create a neopxl object. As much as I can read the full list of this object >>> list(neopxl) [(0, 0...