The CodeCell is a versatile, penny-sized module that is perfect for DIY robotics, wearables, and IoT projects. It features an ESP32-C3 Wi-Fi & BLE module, and a USB-C port for both programming and battery charging. Designed for all makers, the CodeCell comes with a built-in light sensor and an optional 9-axis IMU motion sensor. To make programming even easier, the CodeCell library provides a wide array of functions for initializing, reading, and managing sensors and power.
Let's explore the CodeCell library and its functionalities to understand how to get the most out of this tiny but powerful board!
Initializing CodeCell
The first step in using the CodeCell is to initialize it. This is done using the `myCodeCell.Init()` function, which allows you to specify the sensors you want to enable.
Available Macros:
You can combine multiple macros using the `+` operator to initialize multiple sensors at once.
Managing Power
The `myCodeCell.Run()` function is crucial for power management. This function should be called within the `loop()` function to handle battery status and ensure optimal power usage.
Function Behavior:
The Next Step
Download the CodeCell Arduino Library from the Library Manager to get started with multiple examples that showcase how these functions are used. Explore the full capabilities of CodeCell and start building your next innovative project today!
Be the first to know about new projects and get exciting deals!
© 2024 Microbots.