This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:exercises:display [2010/04/13 06:18] – raivo.sell | en:exercises:display [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 11: | Line 11: | ||
- Present numbers in hexadecimal system randomly on the 7-segment display. The frequency is 1 Hz. | - Present numbers in hexadecimal system randomly on the 7-segment display. The frequency is 1 Hz. | ||
- Light in circular sequence 6 outside segments on the 7-segment indicator with the period of 500 ms. | - Light in circular sequence 6 outside segments on the 7-segment indicator with the period of 500 ms. | ||
- | - Write the following text on the alphanumerical LCD: “õun öö äpu ülo” | + | - Make a LCD program which shows the code and corresponding symbol. Use codes from 0-255. Every code symbol pair is kept on screen 1 second. |
- | - Show special symbols on the alphanumerical LCD. Display the following text in two rows: “My program ©”, “HomeLab™” | + | - Make a program where you can move " |
- Display 10 rows of text on the graphic display which can be scrolled up and down using the buttons S1 and S2. | - Display 10 rows of text on the graphic display which can be scrolled up and down using the buttons S1 and S2. | ||
- Make user interface using three buttons for inserting text. For example, one button chooses the sign, second verifies the sign and finally the third verifies the text. The maximum length of the text is 10 signs and the text must be turned backwards and displayed on the second row. You may use just Latin alphabet. LCD by own choice. | - Make user interface using three buttons for inserting text. For example, one button chooses the sign, second verifies the sign and finally the third verifies the text. The maximum length of the text is 10 signs and the text must be turned backwards and displayed on the second row. You may use just Latin alphabet. LCD by own choice. | ||
Line 22: | Line 22: | ||
- Write a function which displays a rectangle on the graphic LCD when the width, length and the coordinates of the top left corner are given. The width of the line is 1 pixel. Check if the rectangle fits inside the screen. It is advised to study the library of the HomeLab. | - Write a function which displays a rectangle on the graphic LCD when the width, length and the coordinates of the top left corner are given. The width of the line is 1 pixel. Check if the rectangle fits inside the screen. It is advised to study the library of the HomeLab. | ||
- Write a simple worm game on the graphic LCD. The width of the worm is 1 pixel and the length is 5 pixels. The worm can be made to turn either left or right using buttons. The worm must be able to avoid collision with the border of the screen (turning before). Bonus points are for ability of picking up the eggs and making the worm to grow. The simplest solution is to make the worm out of the letter “O”. | - Write a simple worm game on the graphic LCD. The width of the worm is 1 pixel and the length is 5 pixels. The worm can be made to turn either left or right using buttons. The worm must be able to avoid collision with the border of the screen (turning before). Bonus points are for ability of picking up the eggs and making the worm to grow. The simplest solution is to make the worm out of the letter “O”. | ||
- | - 5. Write a program for displaying different weather conditions on the graphic LCD. Sunny weather | + | - Write a program for displaying different weather conditions on the graphic LCD. Sunny weather |
===== Questions ===== | ===== Questions ===== |