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

Code issue with Esp-32 #16

Open
techsavvy356 opened this issue Oct 26, 2023 · 0 comments
Open

Code issue with Esp-32 #16

techsavvy356 opened this issue Oct 26, 2023 · 0 comments

Comments

@techsavvy356
Copy link

C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:70:36: error: 'someLong' was not declared in this scope
int result = max(static_cast(someLong), someInt);
^~~~~~~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:70:47: error: 'someInt' was not declared in this scope
int result = max(static_cast(someLong), someInt);
^~~~~~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:70:14: error: 'max' was not declared in this scope
int result = max(static_cast(someLong), someInt);
^~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:70:14: note: suggested alternative: 'ax'
int result = max(static_cast(someLong), someInt);
^~~
ax
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:74:5: error: redefinition of 'int result'
int result = max(someLong, someInt);
^~~~~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:70:5: note: 'int result' previously defined here
int result = max(static_cast(someLong), someInt);
^~~~~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:74:14: error: 'max' was not declared in this scope
int result = max(someLong, someInt);
^~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:74:14: note: suggested alternative: 'ax'
int result = max(someLong, someInt);
^~~
ax
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino: In function 'void loop()':
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:213:25: error: 'max' was not declared in this scope
int n = max(map(((mm-stageStartTime)), 0, 500, NUM_LEDS, 0), 0);
^~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:213:25: note: suggested alternative: 'ax'
int n = max(map(((mm-stageStartTime)), 0, 500, NUM_LEDS, 0), 0);
^~~
ax
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:220:25: error: 'max' was not declared in this scope
int n = max(map(((mm-stageStartTime)), 500, 1000, NUM_LEDS, 0), 0);
^~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:220:25: note: suggested alternative: 'ax'
int n = max(map(((mm-stageStartTime)), 500, 1000, NUM_LEDS, 0), 0);
^~~
ax
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:235:26: error: 'max' was not declared in this scope
int n = max(static_cast(map((mm - stageStartTime), 0, 500, NUM_LEDS, 0)), 0);
^~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:235:26: note: suggested alternative: 'ax'
int n = max(static_cast(map((mm - stageStartTime), 0, 500, NUM_LEDS, 0)), 0);
^~~
ax
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:246:26: error: 'max' was not declared in this scope
int n = max(static_cast(map((mm - stageStartTime), 0, 500, NUM_LEDS, 0)), 0);
^~~
C:\Users\haput-sa\Downloads\TWANG-master\TWANG4809\TWANG4809.ino:246:26: note: suggested alternative: 'ax'
int n = max(static_cast(map((mm - stageStartTime), 0, 500, NUM_LEDS, 0)), 0);
^~~
ax

exit status 1

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

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