The final project of Embedde class.

Dependencies:   C12832 LM75B ESP-call MMA7660

POT/POT.h

Committer:
pkr7098
Date:
2021-06-03
Revision:
2:37756b51ccdb
Parent:
1:ed1c6618f739

File content as of revision 2:37756b51ccdb:

#ifndef _POT_H
#define _POT_H

#include "mbed.h"

extern AnalogIn    potL;
extern AnalogIn    potR;

#define POT_LEFT    0
#define POT_RIGHT   1

#define POT_CHANGED 0
#define POT_UNCHANGED   1

void potInit(void);
bool potIsChanged(int pot);
float potValue(int pot);
unsigned short potValueU16(int pot);

#endif