SunFounder ESP32 Starter Kit
4.14.2 You Will Learn
• How the Obstacle Avoidance module works and the angle range
• Paint different sprites
• Touch colors
4.14.3 Build the Circuit
The obstacle avoidance module is a distance-adjustable infrared proximity sensor whose output is normally high and
low when an obstacle is detected.
Now build the circuit according to the diagram below.
4.14.4 Programming
1. Paint the Crosshair sprite
Delete the default sprite, select the Sprite button and click Paint, a blank sprite Sprite1 will appear and name it
Crosshair.
4.14. 2.11 GAME - Shooting 549