Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial not working after attachAdcInterrupt #50

Open
OriolFalip opened this issue Jun 2, 2022 · 1 comment
Open

Serial not working after attachAdcInterrupt #50

OriolFalip opened this issue Jun 2, 2022 · 1 comment
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project

Comments

@OriolFalip
Copy link

OriolFalip commented Jun 2, 2022

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?

@aentinger
Copy link
Contributor

Just for clarity, which core version and which version of the libraries are you using? Can you provide a complete (minimal) sketch?

@per1234 per1234 added type: imperfection Perceived defect in any part of project status: waiting for information More information must be provided before work can proceed labels Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants