news: Change pin configuration

This commit is contained in:
tmk 2023-11-09 11:48:34 +09:00
parent 71813a4d6f
commit bf82f1555c
3 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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;

View file

@ -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;