M5Stack Hats are a series of modular expansion boards designed to add specific functionalities to M5Stack development cores, particularly the M5StickC, M5StickC Plus, and M5StickC Plus2. Think of them as "hats" that you can "put on" your M5Stack device to give it new senses, actions, or communication capabilities
Available hats list
Env hat (Measures temperature, air pressure and humidity)
NCIR hat (Infrared temperature sensor)
Pir hat (infrared movement sensor)
ToF hat (high-precision laser distance sensor)
Exercise Level Two - M5Stack hats Connecting hats (stick only)
Connect the hat to the corresponding headers at the top of the stick device. ⚠ Warning: only connect hardware while the device is off and theUSB cable not connected to the computer
Add the hat in the resource panel on the left
Select the appropriate hat (keep the default settings as is) and confirm.
The code blocks for the selected hat will become available in the Hat section.
Click on the name of the hat to got to the product page of the hat.
Click on the 'API' icon to learn about the code blocks.
Different hats will have different features hence different code blocks.
Choose a hat you want to experiment with, connect it to your device, add the code blocks and have fun!