Skip to content

Compilation error for Arduino Nano RP2040 Connect using version 1.15.1 #437

@humzakh

Description

@humzakh

Hi, I'm getting a compilation error using Adafruit_NeoPixel 1.15.1. This error does not occur on 1.15.0 and below.

/Users/hkhan/Documents/Arduino/libraries/Adafruit_NeoPixel/Adafruit_Neopixel_RP2.cpp: In member function 'bool Adafruit_NeoPixel::rp2040claimPIO()':
/Users/hkhan/Documents/Arduino/libraries/Adafruit_NeoPixel/Adafruit_Neopixel_RP2.cpp:9:9: error: 'pio_claim_free_sm_and_add_program_for_gpio_range' was not declared in this scope
   if (! pio_claim_free_sm_and_add_program_for_gpio_range(&ws2812_program,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hkhan/Documents/Arduino/libraries/Adafruit_NeoPixel/Adafruit_Neopixel_RP2.cpp: In member function 'void Adafruit_NeoPixel::rp2040releasePIO()':
/Users/hkhan/Documents/Arduino/libraries/Adafruit_NeoPixel/Adafruit_Neopixel_RP2.cpp:35:3: error: 'pio_remove_program_and_unclaim_sm' was not declared in this scope
   pio_remove_program_and_unclaim_sm(&ws2812_program, pio, pio_sm,  pio_program_offset);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/hkhan/Documents/Arduino/libraries/Adafruit_NeoPixel/Adafruit_Neopixel_RP2.cpp:35:3: note: suggested alternative: 'pio_remove_program'
   pio_remove_program_and_unclaim_sm(&ws2812_program, pio, pio_sm,  pio_program_offset);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   pio_remove_program
exit status 1

Compilation error: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions