Skip to content

Serial not working after attachAdcInterrupt #50

Open
@OriolFalip

Description

@OriolFalip

I'm using a MKR WAN 1310 with the following code:

Serial.print("Battery voltage: ");
Serial.println(analogRead(BATTERY_ANALOG_PIN));
LowPower.attachAdcInterrupt(BATTERY_ANALOG_PIN, lowBatteryVoltage, ADC_INT_BETWEEN, minLowBattery, maxLowBattery);
Serial.println("Can you see me?");

I can see in my console that the battery voltage is printed but any other Serial.print() after attachAdcInterrupt() doesn't print anything.

Is it supposed to be like this? That when you attach the interrupt, Serial no longer works? Is there any other functions that may not work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions