22 TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
29 TEST_ASSERT_EQUAL(LOW, digitalRead(LED_BUILTIN));
34 digitalWrite(LED_BUILTIN, HIGH);
38 TEST_ASSERT_EQUAL(LOW, digitalRead(LED_BUILTIN));
42 TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
49 TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
52 TEST_ASSERT_EQUAL(LOW, digitalRead(LED_BUILTIN));
57 const uint16_t pinsToSet{ 0b11111111111100 };
62 for (uint8_t pin = 2; pin < 14; ++pin)
64 TEST_ASSERT_EQUAL(HIGH, digitalRead(pin));
70 const uint16_t pinsToSet{ 0b11111111111100 };
75 for (uint8_t pin = 2; pin < 14; ++pin)
77 TEST_ASSERT_EQUAL(LOW, digitalRead(pin));
86 for (uint8_t pin = 2; pin < 14; ++pin)
void test_togglePin(void)
void test_setPinsON(void)
void test_setPinsOFF(void)
void test_setPinState(void)
void test_setPinOFF(void)
Some utility functions for pins manipulation.
void setPinsOFF(const uint16_t pins)
Set the Pins state to OFF.
constexpr void setPinState(const uint8_t pin, const bool bState)
Set the Pin state for the specified pin.
constexpr void togglePin(const uint8_t pin)
Toggle the specified pin.
constexpr void setPinON(const uint8_t pin)
Set the Pin state to ON for the specified pin.
constexpr void setPinOFF(const uint8_t pin)
Set the Pin state to OFF for the specified pin.
void setPinsON(const uint16_t pins)
Set the Pins state to ON.