AM-STUDIO / LOGITECH_USB_ADAPTER

23 stars 12 forks source link

Add variables to adjust settings in one place #5

Open patatman opened 1 year ago

patatman commented 1 year ago

I was having some issues with adjusting the pins. I'm using a Piksey Atto (which is the smallest Arduino you can get), and couldn't use the default pins. Adjusting them looked straight forward, but got me into some issues.

This PR makes it easier to define custom pins.

I've made them a variable in the start of the code, and use those variables further down. This way when someone adjusts the pins, they only need to adjust the pin numbers in one place.

Fixes: https://github.com/AM-STUDIO/LOGITECH_USB_ADAPTER/issues/4

patatman commented 1 year ago

Oh, and should you accept this PR. Could you add the label: hacktoberfest-accepted ? This would help me with my Hacktoberfest goal :-)