it actually works now

This commit is contained in:
jazz committed 2025-09-15 16:07:41 -05:00
1 parent 67bc7bd0ae
commit f5a85df11f
36 files changed
+19561 -20573

No files matched your search

+5 -5
View File
@@ -11,13 +11,13 @@
void
breadboard(int DELAY_MS)
{
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
bool Purple = (HAL_GPIO_ReadPin(BTN_PRPL_GPIO_Port, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
bool Grey = (HAL_GPIO_ReadPin(BTN_GREY_GPIO_Port, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
if (!Purple && !Grey) { // inverted for ease of debug, assignment calls for (Purple && Grey)
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
if (Purple && Grey) {
HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_SET); // PB4
} else {
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
}
HAL_Delay(DELAY_MS); // milliseconds of delay after execution