20 TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
27 TEST_ASSERT_EQUAL(LOW, digitalRead(LED_BUILTIN));
32 digitalWrite(LED_BUILTIN, HIGH);
36 TEST_ASSERT_EQUAL(LOW, digitalRead(LED_BUILTIN));
40 TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
47 TEST_ASSERT_EQUAL(HIGH, digitalRead(LED_BUILTIN));
50 TEST_ASSERT_EQUAL(LOW, digitalRead(LED_BUILTIN));
55 const uint16_t pinsToSet{ 0b11111111111100 };
60 for (uint8_t pin = 2; pin < 14; ++pin)
62 TEST_ASSERT_EQUAL(HIGH, digitalRead(pin));
68 const uint16_t pinsToSet{ 0b11111111111100 };
73 for (uint8_t pin = 2; pin < 14; ++pin)
75 TEST_ASSERT_EQUAL(LOW, digitalRead(pin));
84 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(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(uint8_t pin)
Toggle the specified pin.
constexpr void setPinON(uint8_t pin)
Set the Pin state to ON for the specified pin.
constexpr void setPinOFF(uint8_t pin)
Set the Pin state to OFF for the specified pin.
void setPinsON(uint16_t pins)
Set the Pins state to ON.