Hi, I am pretty new, and I need some help, this is the link where the code is running,, Temperature Practice - Wokwi Arduino and ESP32 Simulator
and our professor required us to add some functions:
let the temperature sensor should scroll to the left and then to the right when it hit the end to have an animation effect.
Surely you are not completely ill-equipped to take on this assignment.
Please post your attempts, whether or not they compile, whether or not they work and...
...describe in what way they fail, either the compilation errors or the behaviour of a syntactically correc tprogram that does not yet understand what you are trying to make it do.
Runs but does the wrong thing, or fails to do the right thing.
a7
My idea is: the cursor's display range is (16,2), so I want to create an "if" function, when the cursor run under 16 or something the temp display will from left to right, and the cursor range from 2-16 will let the temp display from right to left.
If you leave a clue in the title of you post, you might attract the interest of an expert in the topic.
Do not assume all the volunteers reading the forum is going to take the time to read an 'I want help' post.
Thank you for the advice, I am going to edit it now.
@flashko I see you left the heavy lifting for the student.
a7
Woooo, thank you sooooo much, your code is so neat and the logic looks so organized, well done.
May I have some questions about it, I am brand new, so my questions might look very immature,
I saw you put "byte pos = 0; boolean dir = true; " may I ask what's the reason you set up those values? And I assume "dir" means direction, but I don't understand "byte", and I saw one of my classmates define"cursor" as "CurrlCursor" and such( I might write it wrong his definition of the cursor, would you like to attach some links or explain a little bit more about how do I define those values or setup definition on Arduino, I will so much appreciate it, thank you again for helping me out and sharing your knowledge. Thank you!
Don't say that, OK, I can understand most of it, and the more complex information that I reach, the more I learn, the greater I will become.
Yeah, ok.
Pro tip: while you are waiting for help, google. Add Arduino and C++ to just about anything for focus results
Arduino C++ byte
and poke around a bit.
You didn't post any code that I see now through my tiny window, so I do suggest you put your finger on @flashko's solution.
You know what all the statements do individuallly. Trace the flow with your finger and see how it makes things happen.
There are as many teaching styles as there are learning styles, I accept your claim that seeing the answer helps you figure out how one day you might be able to come up with code like that.
Will your report to the teacher state that you are using a solution you got from an internet forum? Just curious. My teachers, when I had them, had no such problems as… we did not have the internet. But I have a feeling none of them would have been especially happy about it.
a7
You only criticize me, didn't do anything for pointing me in the right direction, and you didn't check what I put under his solution either, don't tell me to go google and search for arduino= C++,(talk about Google, anyone who has a brain that already knew how to Google) your suggestion is worthless, and nobody says Arduino's language is the same as any other languages, maybe it is similar as C, it's not C++, you are not guiding me to the right place either. BTW, if you can't contribute anything to this community, please exit, if your life is hard and you are finding a place to vent, please go somewhere else, not here. Especially, I did put my own code in the beginning under your first replay, then you are making fun of my coding skills, so I deleted my code. You are bullying people online who are newer than you to the Arduino world, if you have religious, please pray for forgiveness, what you are doing is not kind or helpful.
Is too. Ask your teacher. Or, dare I say it, google it.
And please point out where I made fun of your coding skills. I'm not seeing it.
a7
I hope you're not doing a comp sci course.
And line breaks.
I really like line breaks.
You forgot what's the reason for people to go to school, it's not for showing off how good they are, it's for learning, for logical propose, I would take your response as an encouragement to take sci course in the school. If you got so much time, go to do something, not for bullying people online, it makes you look like a loser, not a winner, especially, for your response, I am pretty sure you need to work on your logical and critical thinking.
People also go to school to work on their communication, presentation, and language skills.
So obvious,you need Go to school to work on it.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.