Closed quakec closed 5 years ago
I didn’t put - - In loop because I copy pasted, a cardinal sin yes, but I understood the logic and reviewed it.
It's not about understanding only, it's about making others understand what the code does. Without this one it doesn't look like a standard for loop.
Yes, knowledge being my limitation, keeping it working behind the scenes was my goal, exposing the enum to the constructor, it’s so messy and I did say I wasn’t happy with it, I am open to suggestions 😊 “Caching” and doing so at function level is new to me, in what context? The cast is the best I could come up with given my knowledge of what is even possible 😊.
Okay, maybe I used a wrong word. You can make a const bool hReversed
and const bool vReversed
members that will be initialized from the enum. Then in the code you can use these constants, no reason to check every time if it's to be inverted or not.
Hi, I have just pushed a new commit to a second branch. I decided to go with a mix of your and mine code. I have finally dropper the class enums, I found a nice way to solve it (with std::set) but I don't want to bring STL into the code. So it will stay with uint8_t flags and let's call it a day. I have also added an option to invert whole display horizontally, not only separate segments. Feel free to check the new code. If everything's fine I will make an official release.
Sounds good :)
Have you merged into master yet? I can't see it.
Also do you still have access to my final example? The MarqueeTextClean example is poorly derrived from the MarqueeText example.
Regards,
James Gohl
Are you cyber streetwise?https://www.cyberaware.gov.uk/
On Sat, 16 Mar 2019 at 17:10, Bartosz Bielawski notifications@github.com wrote:
Hi, I have just pushed a new commit to a second branch. I decided to go with a mix of your and mine code. I have finally dropper the class enums, I found a nice way to solve it (with std::set) but I don't want to bring STL into the code. So it will stay with uint8_t flags and let's call it a day. I have also added an option to invert whole display horizontally, not only separate segments. Feel free to check the new code. If everything's fine I will make an official release.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bartoszbielawski/LEDMatrixDriver/pull/25#issuecomment-473566306, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtJbypDAegsTXMdES4lsupt8lSzLjkCks5vXSWfgaJpZM4bQ_Ia .
Please include this and delete MarqueeTextClean.ino :)
Regards,
James Gohl
Are you cyber streetwise?https://www.cyberaware.gov.uk/
On Sat, 16 Mar 2019 at 19:56, James Gohl james.gohl@gmail.com wrote:
Sounds good :)
Have you merged into master yet? I can't see it.
Also do you still have access to my final example? The MarqueeTextClean example is poorly derrived from the MarqueeText example.
Regards,
James Gohl
Are you cyber streetwise?https://www.cyberaware.gov.uk/
On Sat, 16 Mar 2019 at 17:10, Bartosz Bielawski notifications@github.com wrote:
Hi, I have just pushed a new commit to a second branch. I decided to go with a mix of your and mine code. I have finally dropper the class enums, I found a nice way to solve it (with std::set) but I don't want to bring STL into the code. So it will stay with uint8_t flags and let's call it a day. I have also added an option to invert whole display horizontally, not only separate segments. Feel free to check the new code. If everything's fine I will make an official release.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bartoszbielawski/LEDMatrixDriver/pull/25#issuecomment-473566306, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtJbypDAegsTXMdES4lsupt8lSzLjkCks5vXSWfgaJpZM4bQ_Ia .
Nope, wanted to have it tested by somebody else than me. It's in a separate branch for now. So it's there but not as the master. So I'm not yet braking all the people's projects.
BB
On Sat, 16 Mar 2019, 20:56 James Gohl, notifications@github.com wrote:
Sounds good :)
Have you merged into master yet? I can't see it.
Also do you still have access to my final example? The MarqueeTextClean example is poorly derrived from the MarqueeText example.
Regards,
James Gohl
Are you cyber streetwise?https://www.cyberaware.gov.uk/
On Sat, 16 Mar 2019 at 17:10, Bartosz Bielawski notifications@github.com wrote:
Hi, I have just pushed a new commit to a second branch. I decided to go with a mix of your and mine code. I have finally dropper the class enums, I found a nice way to solve it (with std::set) but I don't want to bring STL into the code. So it will stay with uint8_t flags and let's call it a day. I have also added an option to invert whole display horizontally, not only separate segments. Feel free to check the new code. If everything's fine I will make an official release.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/bartoszbielawski/LEDMatrixDriver/pull/25#issuecomment-473566306 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ABtJbypDAegsTXMdES4lsupt8lSzLjkCks5vXSWfgaJpZM4bQ_Ia
.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/bartoszbielawski/LEDMatrixDriver/pull/25#issuecomment-473580196, or mute the thread https://github.com/notifications/unsubscribe-auth/AD2sEAqO10k1Fz3kJmHp-UpfVHml8pDhks5vXUxugaJpZM4bQ_Ia .
I didn’t put - - In loop because I copy pasted, a cardinal sin yes, but I understood the logic and reviewed it.
Rename vars okay, it’s your driver and it’s imperative the structure and naming conventions are consistent throughout.
Yes, knowledge being my limitation, keeping it working behind the scenes was my goal, exposing the enum to the constructor, it’s so messy and I did say I wasn’t happy with it, I am open to suggestions 😊
“Caching” and doing so at function level is new to me, in what context? The cast is the best I could come up with given my knowledge of what is even possible 😊.
On Tue, 26 Feb 2019 at 23:19, Bartosz Bielawski notifications@github.com wrote: