Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: RemoteIR m3pi mbed-rtos mbed
LightCommunication.h
- Committer:
- Kristof@LAPTOP-FT09DA9V.home
- Date:
- 2017-05-09
- Revision:
- 3:ecb3fa0406e8
- Parent:
- 2:70240992e869
- Child:
- 5:5d2beac511c1
File content as of revision 3:ecb3fa0406e8:
//
// Created by Kristof on 5/9/2017.
//
#ifndef PROJ2_LIGHTCOMMUNICATION_H
#define PROJ2_LIGHTCOMMUNICATION_H
#include <cstdint>
#include "stdio.h"
#include "rtos.h"
#include "ReceiverIR.h"
#define OWN_ID 1
class LightCommunication {
public:
LightCommunication();
virtual ~LightCommunication();
static char * getSerial();
static uint8_t * getIRStyle();
static void receiveData();
static float toFloat(int8_t);
static float right,left;
static bool needsToStop();
static Serial device;
static ReceiverIR ir_rx;
static Mutex mut;
static float getRight(float);
static float getLeft(float);
};
#endif //PROJ2_LIGHTCOMMUNICATION_H
