Skip to content

Bootcamp: WILLIAM - #328

Closed
itxwilliam wants to merge 6 commits into
UWARG:masterfrom
itxwilliam:bootcamp/william
Closed

itxwilliam wants to merge 6 commits into
UWARG:masterfrom
itxwilliam:bootcamp/william

Conversation

@itxwilliam

Copy link
Copy Markdown

No description provided.

@EemanAleem EemanAleem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heyu, great job! Just some small changes, some room for optimizing your prescaler for greter accuracy.

Comment thread nucleof072rb/Core/Src/main.c Outdated
/* USER CODE END WHILE */
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_8, GPIO_PIN_RESET);

HAL_SPI_TransmitReceive(&hspi1, tx_buffer, rx_buffer, BUFFER_SIZE, TIMEOUT);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function call is correct, but it'd be useful to know whether it was successful or not! The function's return value being exposed to the developer would be helpful in debugging as good practice!

Comment thread nucleof072rb/nucleof072rb.ioc Outdated
TIM1.Channel-PWM\ Generation1\ CH1=TIM_CHANNEL_1
TIM1.IPParameters=Channel-PWM Generation1 CH1,Prescaler,Period
TIM1.Period=56470
TIM1.Prescaler=16

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can get your prescaler to be lower for greater accuracy!

@EemanAleem EemanAleem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to WARG!

@EemanAleem EemanAleem closed this Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants