Symmetrical latch signal

pull/149/head
Alex Voinea 2021-11-24 01:36:27 +01:00 committed by DRracer
parent f509dc8346
commit fd6c0bcc23
1 changed files with 2 additions and 1 deletions

View File

@ -33,8 +33,9 @@ void SHR16::Write(uint16_t v) {
} }
WritePin(SHR16_CLOCK, Level::low); WritePin(SHR16_CLOCK, Level::low);
WritePin(SHR16_LATCH, Level::high); WritePin(SHR16_LATCH, Level::high);
_delay_us(25); _delay_us(15);
WritePin(SHR16_LATCH, Level::low); WritePin(SHR16_LATCH, Level::low);
_delay_us(15);
shr16_v = v; shr16_v = v;
} }