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

added support for ADS1115 in ADS1X15 module #665

Merged
merged 1 commit into from Aug 24, 2022
Merged

added support for ADS1115 in ADS1X15 module #665

merged 1 commit into from Aug 24, 2022

Conversation

yerpj
Copy link
Contributor

@yerpj yerpj commented Aug 23, 2022

@@ -92,10 +93,12 @@ var REG = {
LOWTHRESH : 2,
HITHRESH : 3
};
function ADS1X15(i2c) {
function ADS1X15(i2c,opts={part:"ads1015"}) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid Espruino doesn't support default arguments, so I don't believe this code will even run on Espruino unless the minifier is smart enough to transpile it

@gfwilliams
Copy link
Member

Thanks! I'll merge this, but will tweak the default argument manually here

@gfwilliams gfwilliams merged commit 42e492e into espruino:master Aug 24, 2022
gfwilliams added a commit that referenced this pull request Aug 24, 2022
…e DR_ADS1115_860SPS wouldn't have worked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants