From 873c1b2a584a58fc89f0f85e772b653271c8e9c5 Mon Sep 17 00:00:00 2001 From: Apexo Date: Thu, 2 Apr 2026 20:58:40 +0200 Subject: ADC: stop when going to sleep (except idle) --- src/lights/d3aa.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lights/d3aa.ts') diff --git a/src/lights/d3aa.ts b/src/lights/d3aa.ts index 29dc249..21eea86 100644 --- a/src/lights/d3aa.ts +++ b/src/lights/d3aa.ts @@ -134,7 +134,7 @@ export class D3AA { this.portA = new AVRDxPort(this.cpu, 0x0400 + DATA_MEMORY_OFFSET, 0x00 + DATA_MEMORY_OFFSET, 8); this.portC = new AVRDxPort(this.cpu, 0x0440 + DATA_MEMORY_OFFSET, 0x08 + DATA_MEMORY_OFFSET, 29); this.portD = new AVRDxPort(this.cpu, 0x0460 + DATA_MEMORY_OFFSET, 0x0C + DATA_MEMORY_OFFSET, 24); - this.adc = new AVRDxADC(this.cpu, 0x0600 + DATA_MEMORY_OFFSET, 26, this.vref); + this.adc = new AVRDxADC(this.cpu, 0x0600 + DATA_MEMORY_OFFSET, 26, this.vref, this.slpctrl); this.dac = new AVRDxDAC(this.cpu, 0x06A0 + DATA_MEMORY_OFFSET); this.nvmctrl = new AVRDxNVMCTRL(this.cpu, 0x1000 + DATA_MEMORY_OFFSET, 0x1400 + DATA_MEMORY_OFFSET, 256, this.ccp); this.sigrow = new AVRDxSIGROW(this.cpu, 0x1104 + DATA_MEMORY_OFFSET); -- cgit v1.2.3