Search found 49 matches

by Primesty
Fri Sep 17, 2021 8:35 pm
Forum: Programs, Libraries and Tools
Topic: TrickLED - NeoPixel WS2812B Animation Library
Replies: 15
Views: 36530

Re: TrickLED - NeoPixel WS2812B Animation Library

Hi @sgar, You might have figured this out already, but there is a global brightness setting in the trickLED.py file, which you might be able to manipulate: global_setings = { 'brightness': 200, 'interval': 60, 'palette': None, 'animation': None } The various animation functions also all have brightn...
by Primesty
Mon May 24, 2021 3:44 pm
Forum: Programs, Libraries and Tools
Topic: TrickLED - NeoPixel WS2812B Animation Library
Replies: 15
Views: 36530

Re: TrickLED - NeoPixel WS2812B Animation Library

Nice! If you achieve to change the brightness in animations please share! :lol:
Will do! :)
by Primesty
Sun May 23, 2021 4:27 pm
Forum: Programs, Libraries and Tools
Topic: TrickLED - NeoPixel WS2812B Animation Library
Replies: 15
Views: 36530

Re: TrickLED - NeoPixel WS2812B Animation Library

Any luck with this?
Hi Sgar, YES that worked! I first downgraded to MP 1.14 and tried everything. I might have put all the files in the /lib sub_dir instead of giving trickLED its own sub-dir on the ESP32. Now the demo file runs without a hitch also on MP 1.15.

Thanks a lot:)
by Primesty
Sun May 16, 2021 9:40 pm
Forum: Programs, Libraries and Tools
Topic: TrickLED - NeoPixel WS2812B Animation Library
Replies: 15
Views: 36530

Re: TrickLED - NeoPixel WS2812B Animation Library

Hi Sgar,

Thanks, I’ll give that a shot.
by Primesty
Wed May 12, 2021 3:16 pm
Forum: Programs, Libraries and Tools
Topic: TrickLED - NeoPixel WS2812B Animation Library
Replies: 15
Views: 36530

Re: TrickLED - NeoPixel WS2812B Animation Library

@sgar

Do you mind posting your sample code or a link to a repo with the code you’re running? Are you using an ESP32? How did you install the trickLED lib?

I tried installing the entire folder, but am still getting an error.
by Primesty
Fri May 07, 2021 6:15 pm
Forum: Programs, Libraries and Tools
Topic: TrickLED - NeoPixel WS2812B Animation Library
Replies: 15
Views: 36530

Re: TrickLED - NeoPixel WS2812B Animation Library

@Spotlightkid, good thought! I tried that but it threw the same error.

Does anyone have any setup instructions and examples that run reliably on MicroPython 1.15 and an ESP32??
by Primesty
Sat May 01, 2021 3:19 pm
Forum: Programs, Libraries and Tools
Topic: TrickLED - NeoPixel WS2812B Animation Library
Replies: 15
Views: 36530

Re: TrickLED - NeoPixel WS2812B Animation Library

Hi Artacus! This library is fantastic! Thanks a lot for this! I have one question though. I'm trying to run your example on an ESP32 with MicroPython 1.15 and am getting import errors. I have trickLED.py , as well as animations.py and generators.py installed and this is your example code I'm trying ...
by Primesty
Mon Mar 22, 2021 9:52 pm
Forum: Drivers for External Components
Topic: PMS5003 air quality sensor library
Replies: 33
Views: 26208

Re: PMS5003 air quality sensor library

Hi @kevinkk525, I'm trying to set up the PMS5003 example on an ESP32 (with MicroPython 1.14) from your github but seem to be getting No response to wakeup command errors. Weirdly enough, when I run pm.isActive() it returns True. >>> pm.isActive() True This is my UART sertting: uart = UART(1, baudrat...
by Primesty
Fri Mar 19, 2021 2:07 am
Forum: General Discussion and Questions
Topic: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio
Replies: 3
Views: 2400

Re: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio

So, I think I figured it out!!!! First, I re-wrote the run() function in blynk-lib to include async functionality. async def run(self): while True: try: if not self.connected(): self.connect() else: try: self.read_response(timeout=self.SOCK_TIMEOUT) if not self.is_server_alive(): self.disconnect('Se...
by Primesty
Thu Mar 18, 2021 7:42 pm
Forum: General Discussion and Questions
Topic: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio
Replies: 3
Views: 2400

Re: Blynk (lib-python, i.e. blynklib_mp.mpy) in combination with uasyncio

Thanks for the answer, Peter! Yes, I removed the `gc` stuff. You're right that didn't really matter. It looks like the run() function is not written as an async function. So I re-wrote the run() function with async in the actual blynk lib: async def run(self): while True: try: if not self.connected(...