avr: begin preparations for using brightness module in device c03.

This commit is contained in:
Martin Preuss
2026-04-14 23:54:41 +02:00
parent 0df5c68fb3
commit 4411162620
2 changed files with 14 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
; DC PB1 2 39 PA1 DEV1
; INT2 PB2 3 38 PA2 DEV2
; DSPRES PB3 4 37 PA3 PA3
; SS PB4 5 36 PA4 PA4
; SS PB4 5 36 PA4 LUM
; MOSI PB5 6 35 PA5
; MISO PB6 7 34 PA6
; SCK PB7 8 33 PA7
@@ -223,3 +223,13 @@
;.equ UDRIE0 = UDRIE
; ---------------------------------------------------------------------------
; Brightness
.equ BRIGHTNESS_ADC_PORT = PORTA ; adc4
.equ BRIGHTNESS_ADC_DDR = DDRA
.equ BRIGHTNESS_ADC_PIN = PORTA4
.equ BRIGHTNESS_ADC_MUX = 4