-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lucas/refresh #27
base: master
Are you sure you want to change the base?
Lucas/refresh #27
Conversation
235f20b
to
1d3b04d
Compare
@MicroJoe I could use some help getting this example to compile using new file structure (build systems are my weakness :) At the moment, its not able to find the led_strip header file |
I can look at my configuration on monday and help you migrate this to the new build system. Stay tuned. |
I also noticed that my |
@@ -363,7 +363,7 @@ bool led_strip_set_pixel_color(struct led_strip_t *led_strip, uint32_t pixel_num | |||
return set_led_success; | |||
} | |||
|
|||
bool led_strip_set_pixel_rgb(struct led_strip_t *led_strip, uint32_t pixel_num, uint8_t red, uint8_t green, uint8_t blue) | |||
bool led_strip_set_pixel_rgb(struct led_strip_t *led_strip, const uint32_t pixel_num, const uint8_t red, const uint8_t green, const uint8_t blue) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why apply const to copied values? I think const keyword is only relevant when using pointers so that you tell the users you won't modify the value they pass. Const for uint32_t
and other copied values seems pointless to me (because you already can't modify it).
@@ -1,202 +0,0 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more license?
Added const to function parameters
Removed rmt_interrupt_num
Changed file structure to allow this to be imported as component
Just looking for review right meow