Example Code

Some battle-tested examples ready to run. Encoder reading. Display graphics. WiFi scanner. Web server. BLE mouse. Pick one. Upload. Learn. Modify.

Ready-to-run examples that show you what CloudMouse can do. Each example is complete, documented, and available on GitHub. Pick one, clone it, upload it, and see it work.

All examples are built to teach you something specific while being actually useful. No toy projects here.

Available examples

1. LVGL basic implementation

What it does: Cloudmouse SDK with LVGL greacefully implemented on top of DisplayManager, running on Core 1

Usefull for:

  • Advanced UI prototipation
  • Smooth animations
  • LVGL rich snippets out of the box
  • Rich UI applications

GitHub: cloudmouse-co/cloudmouse-examples-lvgl

2. Weather station

What it does: A complete weather monitoring application that demonstrates advanced CloudMouse SDK features including service architecture, event-driven communication, and pixel-perfect LVGL UI design.

What you'll learn:

  • Consuming API endpoints
  • Beautiful LVGL UI
  • FontAwesome icons implementation
  • Event-driven communication

GitHub: cloudmouse-co/cloudmouse-example-wather-station

3. BLE HID Volume controller

What it does: Turns CloudMouse into a wireless Bluetooth mouse. Control your computer's volume wirelessly using the rotary encoder.

What you'll learn:

  • Bluetooth Low Energy HID protocol
  • HID keyboard report format
  • Encoder as input device
  • BLE pairing and connection handling

GitHub: cloudmouse-co/cloudmouse-example-ble-keyboard

4. Forex app

What it does: A professional real-time forex market tracking application for CloudMouse devices. Features live price monitoring, configurable alerts, and a beautiful LVGL-powered interface.

What you'll learn:

  • How implement a full application on top of CluodMouse SDK
  • HTML/CSS/JavaScript interface design exposed through web server
  • Access and write NVS (Non-Volatile Storage)
  • JSON data exchange
  • Advanced LVGL usage

GitHub: cloudmouse-co/cloudmouse-example-forex-app

5. Sensor Dashboard

What it does: Displays real-time system information: WiFi signal strength, free memory, uptime, CPU temperature. Updates every second with animated graphs. Great template for monitoring projects.

What you'll learn:

  • Reading ESP32 internal sensors
  • Real-time data visualization
  • Simple graph rendering
  • System monitoring and diagnostics

GitHub: COMING SOON

6. Encoder Menu System

What it does: Full menu system with encoder navigation. Multiple screens, submenus, settings, value adjustment. Shows how to build complex UIs with just a rotary encoder and display.

What you'll learn:

  • Menu system architecture
  • State management for UI
  • Encoder-based navigation patterns
  • Drawing menus and selection indicators

GitHub: COMING SOON

How to use these examples

Step 1: Choose an example from the list above

Step 2: Clone the repository

git clone [repository-url]
cd [repository-name]

Step 3: Open the .ino file in Arduino IDE

Step 4: Read the README.md for specific instructions and dependencies

Step 5: Install any required libraries (listed in the README)

Step 6: Upload to your CloudMouse and test

Each example includes detailed comments explaining how the code works. Use them as learning material or as starting points for your own projects.

Modifying examples

These examples are meant to be modified and adapted. Here's how to get started:

  • Fork the repository on GitHub
  • Make your changes locally
  • Test on your CloudMouse
  • Commit and push to your fork
  • Share your modifications with the community

Found a bug or have an improvement? Open an issue or submit a pull request on GitHub.

Need help?

Having trouble with an example? Check the repository's Issues page on GitHub. Someone might have already solved your problem.

Still stuck? Join our Discord community for help from other makers.

Want more examples?

The community is constantly creating new examples. Check the CloudMouse GitHub organization for the latest projects.

Built something cool? Share it! We love featuring community projects.