Summary of the experience of the first prize of the 12th Blue Bridge Cup Provincial Championship

I started preparing from the winter vacation. At the beginning, I was familiar with the working principles of each module, including IIC and SPI protocols.
Then I tried to write the driver code first. It was very slow at first, and I found various blogs on the Internet. Check.
Then, on my own various module drivers, I try to train the topics of previous years, and I will encounter various problems at the beginning. For example, the display digital tubes are all written by myself.
Then, I found that the code I wrote is not universal. I feel that I need to buy some materials, refer to some templates,
and then I happened to see this learning material at station B.

I found that this template is quite general, especially when the digital tube displays this.
I encountered a lot of problems when I first tried it myself. These problems actually made me gain a lot. In the process of constantly making mistakes, I was very impressed, which also avoided
various pits in the competition.

After that, I went to train on the teacher's template. Every time I do the previous year's questions, I do it myself first, then summarize the problems and confusions encountered, and write down which functions are difficult to achieve.
You can refer to other people's code, and you will wake up and realize that you can do it this way. This is particularly impressive.
In the process of learning, I will also find that the teacher's implementation of certain functions is too complicated, and I have a better way to achieve it.

The most important thing is that you must try to do it yourself first, looking at other people's code.


As for such a long code, why remember it?
It's important to come module by module. Remember the LED light first, but also understand why it is written like this. It is easy to remember after understanding. Combine the schematic and explain why the code
is written the way it is.
Then splicing the code of each module.

I have done the questions of the provincial and national competitions twice. The first pass mainly trains the logic ideas, you can first drive the code with each module written by yourself.
The second time is to rewrite all the codes, including the start of the new project, to the code of each driver module. During the competition, I first wrote the code of the big template and each module, and then started
to implement the functions as required.
As long as you do it two times, even if you don't remember it all, it's almost there.



 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325027312&siteId=291194637