n21: use module TCRT1000 (door sensor).

This commit is contained in:
Martin Preuss
2025-01-05 00:54:08 +01:00
parent 8eee81c682
commit 43c23d754c
2 changed files with 29 additions and 2 deletions

View File

@@ -13,9 +13,9 @@
; AtTiny84
; --------
; VCC 1 14 GND
; PB0 2 13 PA0 AUX-A0
; PB0 2 13 PA0 TCRT1000_Enable
; PIR PB1 3 12 PA1 COM-DATA
; /RESET PB3 4 11 PA2
; /RESET PB3 4 11 PA2 TCRT1000_Input
; AUX-B2 PB2 5 10 PA3 LED
; COM_ATTN PA7 6 9 PA4 TWI-SCL
; TWI-SDA PA6 7 8 PA5
@@ -125,3 +125,19 @@
; ---------------------------------------------------------------------------
; ADC/TCRT1K
.equ TCRT1K_LED_PORT = PORTA
.equ TCRT1K_LED_DDR = DDRA
.equ TCRT1K_LED_PIN = PORTA0
.equ TCRT1K_ADC_PORT = PORTA ; adc2
.equ TCRT1K_ADC_DDR = DDRA
.equ TCRT1K_ADC_PIN = PORTA2
.equ TCRT1K_ADC_MUX = MUX2
.equ TCRT1K_ADC_ADCSRB = ADC2D