Statistics
| Branch: | Tag: | Revision:

root / MatrixScan.h @ master

History | View | Annotate | Download (661 Bytes)

1 de87a8c5 imp
#include <LUFA/Drivers/USB/USB.h>
2
3
#ifndef __matrixscan_h__
4
#define __matrixscan_h__
5
6 6b552ad6 imp
#include "Matrix.h"
7 de87a8c5 imp
8
#define SHIFTREGPORT PORTC
9
#define SHIFTREGDDR DDRC
10
#define SRDATAPIN PC7
11
#define SRCLKPIN PC6
12 6b552ad6 imp
#define DATAINPORT PORTB
13
#define DATAINPIN PINB
14
#define DATAINDDR DDRB
15
#define DIN_0 PB0
16
#define DIN_1 PB1
17
#define DIN_2 PB2
18
#define DIN_3 PB3
19
#define DIN_4 PB4
20
#define DIN_5 PB5
21
#define DIN_6 PB6
22
#define DIN_7 PB7
23 de87a8c5 imp
24
25
void clearSR(void);
26
void clockSR(void);
27
void pushBit(uint8_t bit);
28
void setupMatrix(void);
29
void setReportData(USB_KeyboardReport_Data_t* const ReportData);
30 47e7c7ed imp
void addKeystroke(uint8_t row, uint8_t col);
31
void decrementKeystrokes(void);
32 de87a8c5 imp
33
34
#endif