/*
 * $Id: lightlevel.h 458 2019-06-17 01:16:35Z true $
 * begin 20190505 true
 */

#ifndef INC_LED_LIGHTLEVEL_H_
#define INC_LED_LIGHTLEVEL_H_


#include "efm8_config.h"



#define LSENS_A			P2_B3
#define LSENS_K			P2_B5

#define LSENS_A_PIN		(1 << 3)
#define LSENS_K_PIN		(1 << 5)

#define LSENS_A_DOUT	P2MDOUT
#define LSENS_K_DIN		P2MDIN

#define LSENS_K_ADC 	AMX0P_AMX0P__ADC0P13;



void lsens_pulse(uint8_t cnt);
void lsens_tick();



#endif /* INC_LED_LIGHTLEVEL_H_ */
