Files
qlock-two/Firmware/include/ldr.h

23 lines
360 B
C

/*
* ldr.h
*
* Created on: 09.01.2016
* Author: BlexTw11
*/
#ifndef INCLUDE_LDR_H_
#define INCLUDE_LDR_H_
#define LDR_PORT PORTC
#define LDR_DDR DDRC
#define LDR_PIN PC2
#define LDR_CHANNEL 3
#define LDR_SAMPLES 20
#define LDR_PRESCALER 4
void LDR_init(void);
uint8_t LDR_get_value(void);
#endif /* INCLUDE_LDR_H_ */