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

Parameters #18

Open
mal2tin opened this issue Sep 12, 2016 · 4 comments
Open

Parameters #18

mal2tin opened this issue Sep 12, 2016 · 4 comments

Comments

@mal2tin
Copy link

mal2tin commented Sep 12, 2016

I reallly need a form to use parameters..
Alarm.timerOnce (10,0,0, ledOn (2));
Void ledOn (int ledPin) {
digitalWtite (ledPin, High)
}

Can you help me?

@Modifikator
Copy link

I too have experienced this problem. Has anyone resolved this issue?

@justinatomatic
Copy link

justinatomatic commented Aug 10, 2017

I'd love to see this as well.

I was hoping somebody might have already extended TimeAlarms like this.

@riskiadi
Copy link

riskiadi commented Mar 18, 2019

@Modifikator @mal2tin @justinatomatic
if you guys confused, try this another way, WITHOUT "AlarmTimer" Library! but need Epoch value

=====

int phase = 1;
void setup(){

}
void loop(){
int8_t hours = epoch.toInt() / 3600 % 24;
int8_t minute = epoch.toInt() / 60 % 60;
if(hours == 17 & minute == 30){
if(phase == 1){
dataTraining(temp, humidity, light, moisture, epoch);
phase++;
}
}else if(hours == 17 & minute == 31){
if(phase == 2){
dataTraining(temp, humidity, light, moisture, epoch);
phase++;
}
}else if(hours == 17 & minute == 33){
if(phase == 3){
dataTraining(temp, humidity, light, moisture, epoch);
phase=1;
}
}
}

@spaelectronics
Copy link

I also need to be able to pass variables to the function. Is this possible?

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

5 participants