ESP32 Starter Kit
9.2.21 Project 18: Beating Heart
1. Description
In this project, a beating heart will be presented via an Arduino board, a 8X8 dot matrix display, a circuit board and some
electronic components. By programming, you can control the beating frequency, heart dimension and its brightness.
2. Wiring Diagram
3. Test Code
1. Drag the two basic blocks.
2. Initialize the dot matrix display. Set the CS pin to IO15 and its brightness to 3. Put these two executions between
the basic blocks.
The following executions are all in "forever" block.
3. Clear the display. Control the display to draw lines and establish coordinates system and its origin as the follow-
ing. Then, refresh the display to show the smaller heart with a delay of 1s.
264
Chapter 9. Scratch Tutorial
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers