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

Can you add also Unit_VMeter_M5CoreS3 sketch for M5CoreS3? #4

Open
lboue opened this issue Dec 11, 2023 · 2 comments
Open

Can you add also Unit_VMeter_M5CoreS3 sketch for M5CoreS3? #4

lboue opened this issue Dec 11, 2023 · 2 comments

Comments

@lboue
Copy link

lboue commented Dec 11, 2023

Hello,

I find Unit_VMeter_M5Core2.
Can you add also Unit_VMeter_M5CoreS3 ?

Regards

@lboue lboue changed the title Can you add also Unit_VMeter_M5Core3 for M5Core3? Can you add also Unit_VMeter_M5CoreS3 sketch for M5CoreS3? Dec 11, 2023
@lboue
Copy link
Author

lboue commented Dec 11, 2023

I try to adapt the code from Core2 to CoreS3 and get the following error: Unit_VMeter_M5CoreS3.ino
'PGA_512' was not declared in this scope

C:\Users\user\Documents\Dev\Unit_VMeter_M5Core3\Unit_VMeter_M5Core3.ino\Unit_VMeter_M5Core3.ino.ino:36:26: error: 'PGA_512' was not declared in this scope
 ADS1115Gain_t now_gain = PGA_512;
                          ^~~~~~~
C:\Users\user\Documents\Dev\Unit_VMeter_M5Core3\Unit_VMeter_M5Core3.ino\Unit_VMeter_M5Core3.ino.ino:36:26: note: suggested alternative: 'PAG_512'
 ADS1115Gain_t now_gain = PGA_512;
                          ^~~~~~~
                          PAG_512
C:\Users\user\Documents\Dev\Unit_VMeter_M5Core3\Unit_VMeter_M5Core3.ino\Unit_VMeter_M5Core3.ino.ino: In function 'void setup()':
C:\Users\user\Documents\Dev\Unit_VMeter_M5Core3\Unit_VMeter_M5Core3.ino\Unit_VMeter_M5Core3.ino.ino:54:23: error: 'PGA_512' was not declared in this scope
     voltmeter.setGain(PGA_512);
                       ^~~~~~~
C:\Users\user\Documents\Dev\Unit_VMeter_M5Core3\Unit_VMeter_M5Core3.ino\Unit_VMeter_M5Core3.ino.ino:54:23: note: suggested alternative: 'PAG_512'
     voltmeter.setGain(PGA_512);
                       ^~~~~~~
                       PAG_512

exit status 1

Compilation error: 'PGA_512' was not declared in this scope

How can I correct this issue?

@lboue
Copy link
Author

lboue commented Mar 23, 2024

Any news about this?

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

No branches or pull requests

1 participant