From b01caeda28c7cf9ff40c47e2b2d56b4fa81fd0ee Mon Sep 17 00:00:00 2001 From: uvos Date: Thu, 10 Mar 2022 22:25:18 +0100 Subject: [PATCH] change some parameters in softspim --- softspim.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/softspim.h b/softspim.h index a0fbf28..c937bc3 100644 --- a/softspim.h +++ b/softspim.h @@ -6,8 +6,8 @@ class SpiMaster { private: - static constexpr uint8_t CLOCK_POLARITY = 1; - static constexpr uint8_t CLOCK_PHASE = 1; + static constexpr uint8_t CLOCK_POLARITY = 0; + static constexpr uint8_t CLOCK_PHASE = 0; static constexpr uint8_t BIT_ORDER = 1; volatile uint8_t * const _port = &PORTB; @@ -16,7 +16,7 @@ private: static constexpr uint8_t _pinOut = PB4; static constexpr uint8_t _pinClock = PB3; - static constexpr uint8_t DELAY_TIME_US = 10; + static constexpr uint8_t DELAY_TIME_US = 0; public: