This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
SummerSchool2-Controller/306-controller_interface.X/app/blcontrol.c

26 lines
455 B
C
Raw Normal View History

2023-08-22 07:22:00 +00:00
#include "blcontrol.h"
#include "../mcc_generated_files/mcc.h"
#include "../factory/factory.h"
//private methods
void BLControl_init(BLControl* me)
{
//nothing to do yet
}
void BLControl_onButton(void * me, uint8_t buttonId, bool pressed)
{
BLControl* realMe = (BLControl*)me;
if (buttonId == BID)
{
if (pressed)
{
LED_on(l());
}
else
{
LED_off(l());
}
}
}