Skip to content

error: 'analogReadResolution' was not declared in this scope #10

@duskohu

Description

@duskohu

Hi I have errtor:
arduino uno wifi rev2

Arduino-Light-Dependent-Resistor-Library-1.4.0/LightDependentResistor.cpp: In member function 'int LightDependentResistor::getCurrentRawAnalogValue() const':
Arduino/libraries/Arduino-Light-Dependent-Resistor-Library-1.4.0/LightDependentResistor.cpp:111:5: error: 'analogReadResolution' was not declared in this scope
     analogReadResolution(_adc_resolution_bits);
     ^~~~~~~~~~~~~~~~~~~~
Arduino-Light-Dependent-Resistor-Library-1.4.0/LightDependentResistor.cpp:111:5: note: suggested alternative: 'analogRead'
     analogReadResolution(_adc_resolution_bits);
     ^~~~~~~~~~~~~~~~~~~~
     analogRead

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