Chapter 6. Output from EV3

In this chapter, we will explore how to send output from the EV3 brick. Output from the EV3 can be visual via the display screen, the built-in brick lights, or external lights. We will use the speaker to generate sounds. In this chapter, we will cover:

  • How to display stock images
  • How to use the Image Editor
  • How to display your images
  • How to display data
  • Using the brick lights
  • Powering non-EV3 LEGO lights
  • Using the Sound Editor
  • Playing sound files
  • Making music

Display

In the previous chapter, we were introduced to the idea of displaying control values on the EV3 screen. This feedback is useful so you do not have to be connected to your computer to make changes to the way the program is executed.

After you have dragged a Display block onto your Programming Canvas, if you click on the upper right-hand corner on the File Name, you can load an image. As you can see in the following screenshot, the EV3 software has numerous stock images that you can use in the LEGO image files:

Display

By clicking on the Display Preview button on the upper left-hand corner of the Display block, the display preview is opened. If the Display block is inside a loop or switch, the preview may get cut off. You can resize the loop or switch to make room for the display preview. The image in the display preview is pixelated. Although the EV3 software could generate a high-resolution image, the display preview is reflecting the actual lower resolution of the display on the EV3 brick.

Display
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.17.40