Rewrite arduino/C++ code for an LED/MQTT project I'm working on
- or -
Post a project like this2222
$30
- Posted:
- Proposals: 4
- Remote
- #1938961
- Awarded
Description
Experience Level: Entry
Estimated project duration: 1 day or less
I have a relatively simple Arduino project (ESP8266, actually) that I've written some code for. It's basically an LED strip controller that takes commands from a Home Assistant server through MQTT. I'm new to coding so I've got everything working, but it's not quite as clean and as efficient as it could be. I need someone to look it over and rewrite an identical project but make it more efficient where possible. For example, I have one portion of code that is comparing "effect" strings received from MQTT to another string, and if it matches, I set a variable to a number. I use that number in a case/switch statement to actually call the function for the given effect. There is likely a better, more efficient way to accomplish this, so that would be something I would need done.
I also have a ton of different variables and delays in the code for each of the different LED effects but I feel as though a lot of them can be shared to make the code cleaner.
Overall it's not a difficult job for someone who works with C++ for a living. I also tried to comment the code initially so it shouldn't be too confusing, but I did give up on commenting about halfway through. I would like the rewritten code to be commented for ease of use.
A lot of the actual "effects" are just code I picked up from github so they may already be pretty well written/commented.
I also have a ton of different variables and delays in the code for each of the different LED effects but I feel as though a lot of them can be shared to make the code cleaner.
Overall it's not a difficult job for someone who works with C++ for a living. I also tried to comment the code initially so it shouldn't be too confusing, but I did give up on commenting about halfway through. I would like the rewritten code to be commented for ease of use.
A lot of the actual "effects" are just code I picked up from github so they may already be pretty well written/commented.
Vash P.
100% (2)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
5 Apr 2018
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies