news: Change pin configuration
This commit is contained in:
parent
71813a4d6f
commit
bf82f1555c
3 changed files with 4 additions and 4 deletions
|
|
@ -23,8 +23,8 @@ Use PD2(USART RXD) for 'Keyboard Data' pin and give power with VCC and GND. Othe
|
||||||
------------------------
|
------------------------
|
||||||
PD2 Keyboard Data
|
PD2 Keyboard Data
|
||||||
PD3 Keyboard Command
|
PD3 Keyboard Command
|
||||||
PD4 Mouse Data
|
PD0 Mouse Data
|
||||||
PD0 BZ
|
PD1 BZ
|
||||||
|
|
||||||
Target microcontroller is Atmel ATMega32U2 by default but porting this project to other 8-bit AVR controllers would be easy.
|
Target microcontroller is Atmel ATMega32U2 by default but porting this project to other 8-bit AVR controllers would be easy.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,7 @@ uint8_t matrix_scan(void)
|
||||||
// make code
|
// make code
|
||||||
if (!matrix_is_on(ROW(code), COL(code))) {
|
if (!matrix_is_on(ROW(code), COL(code))) {
|
||||||
matrix[ROW(code)] |= (1<<COL(code));
|
matrix[ROW(code)] |= (1<<COL(code));
|
||||||
//tone(80, 100);
|
//tone(440, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return code;
|
return code;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
// Pin for buzzer: PD0
|
// Pin for buzzer: PD0
|
||||||
#define BZ_PIN_PORT PORTD
|
#define BZ_PIN_PORT PORTD
|
||||||
#define BZ_PIN_DDR DDRD
|
#define BZ_PIN_DDR DDRD
|
||||||
#define BZ_PIN_MASK (1<<0)
|
#define BZ_PIN_MASK (1<<1)
|
||||||
|
|
||||||
volatile long toggle_count;
|
volatile long toggle_count;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue