Giter Club home page Giter Club logo

Comments (10)

rafaelaroca avatar rafaelaroca commented on August 24, 2024 1

Hello!
Done, but not tested. Took the opportunity to write about how to create new blocks:
https://bipes.net.br/wp/creating-new-blocks/

Example:
https://bipes.net.br/beta2serial/ui/#i3dbcf

Could you test it please?

Only implemented in the beta2serial. If it works, we can copy the code to WebRPL (network version)

best regards!
Rafael

from bipes.

ptal78 avatar ptal78 commented on August 24, 2024

Oh, I forgot the following:

np.write() # required to transmit the data from the buffer array to the LEDs

Also, if you would like an example of the code, the following implementation is much preferred than the older ESP8266 documentation does it (and should still work for both).

ESP32: https://docs.micropython.org/en/latest/esp32/quickref.html?highlight=esp32%20neopixel

This also has an explanation of the APA106 driver, and the Touchpad driver.

from bipes.

ptal78 avatar ptal78 commented on August 24, 2024

Excellent - it works great! You are a champion.

from bipes.

rafaelaroca avatar rafaelaroca commented on August 24, 2024

:-)

from bipes.

lbaitemple avatar lbaitemple commented on August 24, 2024

:-)

c

Hello! Done, but not tested. Took the opportunity to write about how to create new blocks: https://bipes.net.br/wp/creating-new-blocks/

Example: https://bipes.net.br/beta2serial/ui/#i3dbcf

Could you test it please?

Only implemented in the beta2serial. If it works, we can copy the code to WebRPL (network version)

best regards! Rafael

Can you make the neopixel work in raspberry pi pico? I tried on offline version, but I cannot include the neopixel library.

from bipes.

jetannenbaum avatar jetannenbaum commented on August 24, 2024

The offline version has been updated to use the internal MicroPython neopixel library for the Pico. You need to use version 1.18 or later of the MicroPython firmware. Available here: https://micropython.org/download/rp2-pico/

from bipes.

lbaitemple avatar lbaitemple commented on August 24, 2024

Thanks. I tried that, but the code does not run. The follow error appears in the console as
AttributeError: 'module' object has no attribute 'NeoPixel'

I think the problem is the NeoPixel was declared incorrectly in the code. I guess we cannot use the block code to control the NeoPixel.

from bipes.

jetannenbaum avatar jetannenbaum commented on August 24, 2024

Hi,

I'm a bit confused. I tried the neopixel blocks in both the "standard" bipes code (http://bipes.net.br/ide/) and a branch that is specific to the RP2040 boards (https://bipes.net.br/pico/ui/). In both cases, the neopixel blocks ran without error. I then attempted to run the downloaded code from https://bipes.net.br/wp/ That version of code didn't have the capability to use a neopixel display with the Pico. Finally, I tried the code from the offline branch. Once I built the index_offline file and tried the neopixel block, it ran fine. Can you supply a few more details on which code you were running? Thanks

from bipes.

lbaitemple avatar lbaitemple commented on August 24, 2024

Hi,

I'm a bit confused. I tried the neopixel blocks in both the "standard" bipes code (http://bipes.net.br/ide/) and a branch that is specific to the RP2040 boards (https://bipes.net.br/pico/ui/). In both cases, the neopixel blocks ran without error. I then attempted to run the downloaded code from https://bipes.net.br/wp/ That version of code didn't have the capability to use a neopixel display with the Pico. Finally, I tried the code from the offline branch. Once I built the index_offline file and tried the neopixel block, it ran fine. Can you supply a few more details on which code you were running? Thanks

Thank you. I figured it out. I was using a wrong neopixel python file (https://github.com/blaz-r/pi_pico_neopixel/blob/main/neopixel.py). I uploaded micropython neopixel python file. It runs without any error, but I would hope we can change the brightness of the neopixel display. Thank you again for your quick response.

from bipes.

zegonix avatar zegonix commented on August 24, 2024

Hi,
I tried to use the NeoPixel library with my Raspberry Pi Pico. I noticed, that the blocks are not listed when working with the Pico, but are when working with the ESP32.
I tried to generate a little test program for the ESP32 and then switch to the Pico, but I can't test it, as it doesn't connect (I use Chrome with 'experimental wep platform features' enabled). The website doesn't support https and this article says that the web terminal only work with https, so maybe this is the problem?
I will try it offline, but since we plan to use this in a workshop with kids, the offline version would be a dealbreaker for us.

from bipes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.