Skip to content

Instantly share code, notes, and snippets.

View eminboydak's full-sized avatar
👾

Muhammed Emin Boydak eminboydak

👾
View GitHub Profile
@eminboydak
eminboydak / arch_linux_installation.md
Last active April 7, 2024 23:31
Notes on my Arch Linux installation

Notes on my Arch Linux installation

Hardware

  • Lenovo Thinkpad E14G3 (20Y7004ETX)
    • AMD Ryzen 7 5700U
    • 16GB RAM
    • 1TB SSD
    • 14" FHD
@eminboydak
eminboydak / stepper.c
Created October 26, 2021 09:06
Stepper Ramp Driver
/* USER CODE BEGIN 0 */
void delay_us (uint16_t us)
{
__HAL_TIM_SET_COUNTER(&htim2,0); // set the counter value a 0
while (__HAL_TIM_GET_COUNTER(&htim2) < us); // wait for the counter to reach the us input in the parameter
}
void simpleAccel(int steps, GPIO_PinState dir)
{
HAL_GPIO_WritePin(Output1_GPIO_Port, Output1_Pin, dir);