> ## Documentation Index
> Fetch the complete documentation index at: https://launchpad.anxlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ANX Labs Example Applications Library

> Browse ready-to-run example applications for the ANX dev module covering GPIO control, sensor integration, wireless connectivity, and more.

ANX Labs ships a curated library of example applications designed to help you learn the platform, explore the SDK, and jumpstart your own projects. Each example is self-contained, fully annotated, and runnable with a single command — so you can go from unboxing to a working demo in minutes.

## Accessing the Examples

You can access all examples by cloning the official repository and using the `anx run` command. The examples repo contains the complete source code, a `config.json` template, and any required assets for each project.

```bash theme={null}
git clone https://github.com/anx-labs/examples.git
cd examples
anx run blinky
```

To browse every available example without opening a browser, use the CLI list command:

```bash theme={null}
anx examples list
```

## Example Categories

Each example targets a specific area of the ANX SDK. Start with Blinky if this is your first time on the platform, then work your way through the categories that match your project needs.

<CardGroup cols={2}>
  <Card title="Blinky" icon="lightbulb" href="/examples/blinky">
    The canonical first program for any hardware platform. Blink the onboard LED and confirm your toolchain is correctly set up.
  </Card>

  <Card title="Sensor Data" icon="microchip" href="/examples/sensor-data">
    Read analog values over ADC and temperature/humidity data over I2C. Log readings to the serial monitor in real time.
  </Card>

  <Card title="Connectivity" icon="wifi" href="/examples/connectivity">
    Connect to Wi-Fi and publish sensor readings to an MQTT broker over TLS — the foundation for any cloud-connected IoT project.
  </Card>

  <Card title="More Examples" icon="clock" href="#">
    Additional examples are in active development. See the note below for what's coming next.
  </Card>
</CardGroup>

<Note>
  Three more example categories are on the way and will be added to this library soon:

  * **BLE Beacon** — Advertise custom BLE packets and scan for nearby devices using the ANX BLE stack.
  * **PWM Motor Control** — Drive DC motors and servos using the hardware PWM peripheral.
  * **File System** — Read and write files to the onboard flash file system using the ANX FS API.

  Watch the [ANX Labs GitHub](https://github.com/anx-labs/examples) repository for releases.
</Note>

## Running Any Example

Every example in the library follows the same workflow. Use these steps as your starting point regardless of which example you choose to run.

<Steps>
  <Step title="Get the example source">
    Clone the full repository or fetch only the example you need:

    ```bash theme={null}
    # Clone everything
    git clone https://github.com/anx-labs/examples.git

    # Or fetch a single example into the current directory
    anx examples fetch <name>
    ```
  </Step>

  <Step title="Edit config.json for your environment">
    Open the `config.json` file inside the example directory and fill in any environment-specific values such as Wi-Fi credentials, MQTT broker details, or pin assignments:

    ```json theme={null}
    {
      "wifi": {
        "ssid": "YourNetwork",
        "password": "YourPassword"
      }
    }
    ```

    Examples that don't require network access (such as Blinky) ship with a minimal `config.json` that needs no changes.
  </Step>

  <Step title="Flash the application">
    Build and flash the example to your connected ANX dev module with one command:

    ```bash theme={null}
    anx run <example-name>
    ```

    The CLI automatically detects the connected module over USB, compiles the application, and flashes the firmware image.
  </Step>

  <Step title="Open the serial monitor">
    Once the module resets after flashing, open the serial monitor to view log output and confirm the example is running:

    ```bash theme={null}
    anx monitor
    ```

    Press `Ctrl+C` to exit the monitor at any time.
  </Step>
</Steps>
