SlideShare uma empresa Scribd logo
1 de 14
DISPLAYING TEXT AND GRAPHICS
BEGINNER
PROGRAMMING
LESSON
LESSON OBJECTIVES
1. Learn to use the Display Block to display text and images
2. Understand why the Display Block can be useful in programming
2COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
Display Block
• The Display Block to show
information and pictures on the
screen
• You can control the location and
size of text
• You can use this same block to
display sensor readings and
instructions.
• Located in Green Tab
3COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
MORE ON Display Blocks
Two modes to display
Pixel mode (Use for displaying images or text)
◦ 178 pixels left and right
◦ 128 pixels up and down
Grid mode (Easier to use, only works for text mode)
◦ 22 columns of 8 pixels each
◦ 12 rows of 10 pixels each
◦ Small characters are 1 row and 1 column
◦ Large characters are 2 rows and 2 columns
4COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
Displaying Text in Grid Mode
Text to be
displayed
Text size
0 – small font
1 – small, bold font
2 – large font
Display
Preview
Erase Screen
Column to start
display
Row to start display
Black/White Display
Text Size
Switch
Modes
Step 1:
Pick Display Block
Step 2:
Click on “Switch Modes” icon and
hover over “text”. Then click on
“grid”. The icon will change into a
square with dots.
Step 3:
Use the box on the top right to
enter the text you want to display
5COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
DISPLAY BLOCK CHALLENGE 1
Can you write a program to display text in the middle of the screen?
◦ Display “Hello World”
Make the display block run for 3 seconds
Can you also move while doing this?
6COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
Challenge 1 solution
7COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
CHALLENGE 2: Two lines of Text
Now what if you want “Hello” to appear on one line and “World” to
appear on the next line?
Hint: You will use two display blocks and don’t clear the screen on the
second display block otherwise the first word will disappear!
8COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
Challenge 2 Solution
9COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
Displaying an image in PIXEL
Mode
Step 1:
Pick Display Block
Step 2:
Click on the “Select Mode” which
has a folder icon and pick
“image”
Step 3:
Use the empty box on the top
right to pick the image you want
to display
10COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
DISPLAY BLOCK CHALLENGE 3
Can you display eyes on the screen
while moving? Alternate eyeballs
that look left and right.
• Use the Display Block, Motor
On and Wait Block
• Feel free to have fun with this
challenge and make it yours!
11COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
CHALLENGE 3 Solution
Display
Block
Motor On Wait
Block
Motor
Off
12COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
Discussion Guide
Why might you want to know how to use the display block?
◦ You might want to know what the sensor value your robot is seeing
◦ You might have to program a robot to stop when the robot reaches a red line
but it stops before
◦ Does the robot see the same thing you see?
◦ You can display the value on the screen and check
It’s a great debugging tool. You can learn more about debugging code in
one of our Intermediate lessons.
13COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
End of the lesson
14

Mais conteúdo relacionado

Semelhante a Aj display2 - Beginner

Photoshop pdf
Photoshop pdfPhotoshop pdf
Photoshop pdf
Kim B
 
Utilizing Layers in AutoCAD Prototype Package
Utilizing Layers in AutoCAD Prototype PackageUtilizing Layers in AutoCAD Prototype Package
Utilizing Layers in AutoCAD Prototype Package
Brian Mitchell
 
Adobe photoshop cs6
Adobe photoshop cs6Adobe photoshop cs6
Adobe photoshop cs6
Ila Azmil
 
Wunderman template 3x4_jan 2012
Wunderman template 3x4_jan 2012Wunderman template 3x4_jan 2012
Wunderman template 3x4_jan 2012
catawunderman
 
PhotoshopBeyondBasics
PhotoshopBeyondBasicsPhotoshopBeyondBasics
PhotoshopBeyondBasics
tutorialsruby
 
PhotoshopBeyondBasics
PhotoshopBeyondBasicsPhotoshopBeyondBasics
PhotoshopBeyondBasics
tutorialsruby
 
photoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorialphotoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorial
tutorialsruby
 
photoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorialphotoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorial
tutorialsruby
 
Pixel Perfect Precision (how to do your design clean and neat)
Pixel Perfect Precision (how to do your design clean and neat)Pixel Perfect Precision (how to do your design clean and neat)
Pixel Perfect Precision (how to do your design clean and neat)
Mitya Voskresensky
 
How to be Pixel Perfect (Replaces Making Accessibility Accessible) - Matt Gy...
How to be Pixel Perfect  (Replaces Making Accessibility Accessible) - Matt Gy...How to be Pixel Perfect  (Replaces Making Accessibility Accessible) - Matt Gy...
How to be Pixel Perfect (Replaces Making Accessibility Accessible) - Matt Gy...
City University London
 

Semelhante a Aj display2 - Beginner (20)

3 cool-arty-power point-tricks
3 cool-arty-power point-tricks3 cool-arty-power point-tricks
3 cool-arty-power point-tricks
 
Computer Science.pptx
Computer Science.pptxComputer Science.pptx
Computer Science.pptx
 
Photoshop pdf
Photoshop pdfPhotoshop pdf
Photoshop pdf
 
Adobe Photoshop CS6 tutorial 2013
Adobe Photoshop CS6 tutorial 2013Adobe Photoshop CS6 tutorial 2013
Adobe Photoshop CS6 tutorial 2013
 
HOW TO use PENCIL
HOW TO use PENCILHOW TO use PENCIL
HOW TO use PENCIL
 
Photoshop cs6
Photoshop cs6Photoshop cs6
Photoshop cs6
 
Utilizing Layers in AutoCAD Prototype Package
Utilizing Layers in AutoCAD Prototype PackageUtilizing Layers in AutoCAD Prototype Package
Utilizing Layers in AutoCAD Prototype Package
 
Adobe photoshop cs6
Adobe photoshop cs6Adobe photoshop cs6
Adobe photoshop cs6
 
Adobe photoshop cs6
Adobe photoshop cs6Adobe photoshop cs6
Adobe photoshop cs6
 
Adobe photoshop cs6 tutorial
Adobe photoshop cs6 tutorialAdobe photoshop cs6 tutorial
Adobe photoshop cs6 tutorial
 
Wunderman template 3x4_jan 2012
Wunderman template 3x4_jan 2012Wunderman template 3x4_jan 2012
Wunderman template 3x4_jan 2012
 
PhotoshopBeyondBasics
PhotoshopBeyondBasicsPhotoshopBeyondBasics
PhotoshopBeyondBasics
 
PhotoshopBeyondBasics
PhotoshopBeyondBasicsPhotoshopBeyondBasics
PhotoshopBeyondBasics
 
photoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorialphotoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorial
 
photoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorialphotoshop-cs3-border-bg-tutorial
photoshop-cs3-border-bg-tutorial
 
Photoshop notes cs-4
Photoshop notes  cs-4Photoshop notes  cs-4
Photoshop notes cs-4
 
Autocad 2007 Workbook Tutorial
Autocad 2007 Workbook TutorialAutocad 2007 Workbook Tutorial
Autocad 2007 Workbook Tutorial
 
Pixel Perfect Precision (how to do your design clean and neat)
Pixel Perfect Precision (how to do your design clean and neat)Pixel Perfect Precision (how to do your design clean and neat)
Pixel Perfect Precision (how to do your design clean and neat)
 
How to be Pixel Perfect (Replaces Making Accessibility Accessible) - Matt Gy...
How to be Pixel Perfect  (Replaces Making Accessibility Accessible) - Matt Gy...How to be Pixel Perfect  (Replaces Making Accessibility Accessible) - Matt Gy...
How to be Pixel Perfect (Replaces Making Accessibility Accessible) - Matt Gy...
 
Ppp™
Ppp™Ppp™
Ppp™
 

Mais de Romaric Saounde Tsopnang

Mais de Romaric Saounde Tsopnang (20)

Aq switches2 - Beginner
Aq   switches2 - BeginnerAq   switches2 - Beginner
Aq switches2 - Beginner
 
Aq les conditionnelles - Débutant
Aq   les conditionnelles - DébutantAq   les conditionnelles - Débutant
Aq les conditionnelles - Débutant
 
Ap les boucles - Débutants
Ap   les boucles - DébutantsAp   les boucles - Débutants
Ap les boucles - Débutants
 
Ap loops2 - Beginner
Ap   loops2 - BeginnerAp   loops2 - Beginner
Ap loops2 - Beginner
 
Ao light nxt2 - Beginner
Ao   light nxt2 - BeginnerAo   light nxt2 - Beginner
Ao light nxt2 - Beginner
 
An capteur de couleur - Débutant
An   capteur de couleur - DébutantAn   capteur de couleur - Débutant
An capteur de couleur - Débutant
 
An color Sensor - Beginner
An   color Sensor - BeginnerAn   color Sensor - Beginner
An color Sensor - Beginner
 
Al capteur tactile - Débutant
Al   capteur tactile - DébutantAl   capteur tactile - Débutant
Al capteur tactile - Débutant
 
Al touch2 - Beginner
Al   touch2 - BeginnerAl   touch2 - Beginner
Al touch2 - Beginner
 
Ak custom imagessounds2 - Beginner
Ak   custom imagessounds2 - BeginnerAk   custom imagessounds2 - Beginner
Ak custom imagessounds2 - Beginner
 
Ak image et son standard - Débutant
Ak   image et son standard - DébutantAk   image et son standard - Débutant
Ak image et son standard - Débutant
 
Aj affichage - Débutant
Aj   affichage - DébutantAj   affichage - Débutant
Aj affichage - Débutant
 
Ai turning2 - Beginner
Ai   turning2 - BeginnerAi   turning2 - Beginner
Ai turning2 - Beginner
 
Ai virages - Débutant
Ai   virages - DébutantAi   virages - Débutant
Ai virages - Débutant
 
Ah pseudocode2 - Beginner
Ah   pseudocode2 - BeginnerAh   pseudocode2 - Beginner
Ah pseudocode2 - Beginner
 
Ah pseudocode-fr - Débutant
Ah   pseudocode-fr - DébutantAh   pseudocode-fr - Débutant
Ah pseudocode-fr - Débutant
 
Ag moving straight2 - Beginner
Ag   moving straight2 - BeginnerAg   moving straight2 - Beginner
Ag moving straight2 - Beginner
 
Ag deplacement droit - Débutant
Ag   deplacement droit - DébutantAg   deplacement droit - Débutant
Ag deplacement droit - Débutant
 
Af port view2 - Beginner
Af   port view2 - BeginnerAf   port view2 - Beginner
Af port view2 - Beginner
 
Af vue des portes - Débutant
Af   vue des portes - DébutantAf   vue des portes - Débutant
Af vue des portes - Débutant
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Aj display2 - Beginner

  • 1. DISPLAYING TEXT AND GRAPHICS BEGINNER PROGRAMMING LESSON
  • 2. LESSON OBJECTIVES 1. Learn to use the Display Block to display text and images 2. Understand why the Display Block can be useful in programming 2COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 3. Display Block • The Display Block to show information and pictures on the screen • You can control the location and size of text • You can use this same block to display sensor readings and instructions. • Located in Green Tab 3COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 4. MORE ON Display Blocks Two modes to display Pixel mode (Use for displaying images or text) ◦ 178 pixels left and right ◦ 128 pixels up and down Grid mode (Easier to use, only works for text mode) ◦ 22 columns of 8 pixels each ◦ 12 rows of 10 pixels each ◦ Small characters are 1 row and 1 column ◦ Large characters are 2 rows and 2 columns 4COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 5. Displaying Text in Grid Mode Text to be displayed Text size 0 – small font 1 – small, bold font 2 – large font Display Preview Erase Screen Column to start display Row to start display Black/White Display Text Size Switch Modes Step 1: Pick Display Block Step 2: Click on “Switch Modes” icon and hover over “text”. Then click on “grid”. The icon will change into a square with dots. Step 3: Use the box on the top right to enter the text you want to display 5COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 6. DISPLAY BLOCK CHALLENGE 1 Can you write a program to display text in the middle of the screen? ◦ Display “Hello World” Make the display block run for 3 seconds Can you also move while doing this? 6COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 7. Challenge 1 solution 7COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 8. CHALLENGE 2: Two lines of Text Now what if you want “Hello” to appear on one line and “World” to appear on the next line? Hint: You will use two display blocks and don’t clear the screen on the second display block otherwise the first word will disappear! 8COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 9. Challenge 2 Solution 9COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 10. Displaying an image in PIXEL Mode Step 1: Pick Display Block Step 2: Click on the “Select Mode” which has a folder icon and pick “image” Step 3: Use the empty box on the top right to pick the image you want to display 10COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 11. DISPLAY BLOCK CHALLENGE 3 Can you display eyes on the screen while moving? Alternate eyeballs that look left and right. • Use the Display Block, Motor On and Wait Block • Feel free to have fun with this challenge and make it yours! 11COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 12. CHALLENGE 3 Solution Display Block Motor On Wait Block Motor Off 12COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 13. Discussion Guide Why might you want to know how to use the display block? ◦ You might want to know what the sensor value your robot is seeing ◦ You might have to program a robot to stop when the robot reaches a red line but it stops before ◦ Does the robot see the same thing you see? ◦ You can display the value on the screen and check It’s a great debugging tool. You can learn more about debugging code in one of our Intermediate lessons. 13COPYRIGHT © EV3LESSONS.COM 2016 (LAST EDIT: 07/04/2016)
  • 14. End of the lesson 14