|
www.reddit.com/r/esp32
I'm not a reddit fan typically but they have an espressif developer who mods that subreddit and he's super helpful and the community is mostly friendly
Real programmers use butterflies
|
|
|
|
|
Message Closed
modified 15-May-23 19:07pm.
|
|
|
|
|
Member 14968771 wrote: My teenage grand kid is trying to build PC to electric - not mechanical - organ
interface. Ehr.. organ, like the classical piano-like things in churches?
..and can't give you anything that Google can't, outside a small donation.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I'm assuming you found this? >> Little Wire[^]
The download links for Windows 32bit and 64bit seem to work.
Is that what you meant by "way to load it"?
|
|
|
|
|
Because it has a break in the default section of a switch statement, which was supposed to exit the enclosing while !
|
|
|
|
|
goto infinity?
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
AND BEYOND!
Sorry, the door was open, so I walked in.
"When you are dead, you won't even know that you are dead. It's a pain only felt by others; same thing when you are stupid."
Ignorant - An individual without knowledge, but is willing to learn.
Stupid - An individual without knowledge and is incapable of learning.
Idiot - An individual without knowledge and allows social media to do the thinking for them.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
|
My sympathies ... they should have used a different keyword for switch really. "break " makes sense in a loop, but esac might have been a better choice way back when.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
esac might have been a better choice Are you trying to ALGOL us here?
Mircea
|
|
|
|
|
Some of my best friends are Algolians!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
That's your go-to rant about C and C++ as far as I can tell.
You should really consider using exit conditions instead of while(true);
Real programmers use butterflies
|
|
|
|
|
Yes, I'd previously said it was a design flaw. Now it bit me. Your advice is good, at least when there's a switch inside a loop.
But a rant would focus on the pendantry of how the standards group has evolved C++.
|
|
|
|
|
Were you trying to emulate Duff?
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
I have no idea what you're talking about.
|
|
|
|
|
Duff's device - Wikipedia[^]
send(to, from, count)
register short *to, *from;
register count;
{
register n = (count + 7) / 8;
switch (count % 8) {
case 0: do { *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
case 5: *to = *from++;
case 4: *to = *from++;
case 3: *to = *from++;
case 2: *to = *from++;
case 1: *to = *from++;
} while (--n > 0);
}
}
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
I'd seen that before but forgot its name. I'm just thankful I don't have to read or write that kind of thing!
|
|
|
|
|
You need to be a bit more philosophical about this.
When you have an infinite loop the program stays busy - keeps itself out of trouble for, as we all know, "Idle Hands are the Devil's Playthings".
While it's looping you know where it is and don't have to worry about anything in the remainder of the code going wrong.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
You've been around a while, I see.
|
|
|
|
|
. . . and around and around and around and . . .
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Indeed, break should only break loops, a switch is not a loop.
Additionally, "fall-through" should never have been allowed in switch .
|
|
|
|
|
[[fallthrough]] is what happens if a break is forgotten. C++ views switch as a series of statement sequences that can only be exited with a break . Whether it's a good design can be debated. The language that I used for over 20 years didn't support the equivalent of [[fallthrough]] .
|
|
|
|
|
Ties for first, second and third place. We should start a betting pool.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: We should start a betting pool. I bet horse #1.
What did we win?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|