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

[CHECKIN] basic check-in task #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions smart_bridge/src/tasks/CheckInTask.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "CheckInTask.h"

CheckInTask::CheckInTask() {}

void CheckInTask::init()
{
L1 = new Led(L1_PIN);
L2 = new Led(L2_PIN);
gate = new Servo();
message = new String();
}

void CheckInTask::tick()
{
L1->switchOn();

}
28 changes: 28 additions & 0 deletions smart_bridge/src/tasks/CheckInTask.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#ifndef __CHECKINTASK__
#define __CHECKINTASK__

#include <Arduino.h>
#include "kernel/Task.h"
#include "components/api/Led.h"
#include "config/config.h"
#include <Servo.h>

/**
* @class CheckInTask
* @brief Represents the check-in task.
*/

class CheckInTask : public Task
{
Led *L1;
Led *L2;
Servo *gate;
String *message;

public:
CheckInTask();
void init();
void tick() override;
};

#endif
Loading