Skip to content

Neopixel init block not compatible with standard micropython neopixel library #10

@skeatz

Description

@skeatz

The neopixel init block includes a brightness & offset setting. Code generated looks like this:
neopixel = NeoPixel(Pin(2, Pin.OUT), 10, 3, 1, brightness=0.5)

This is not compatible with the standard micropython neopixel library, which uses this code:
neopixel = NeoPixel(Pin(2, Pin.OUT), 10)

Could you separate the neopixel brightness setting to its own block? This will allow users to use MPYBlockly with other esp32 variants (e.g. esp32c3, esp32s3) using the standard micropython firmware.

Alternatively, is the source code available, so that users can modify the blocks and recompile their own version of MPYBlockly? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions