# Code Examples

- [Demo Code](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/demo-code.md): This is the code that ships with the Raspberry Breadstick. It uses the gyroscope to change the LEDs when rotated about its z-axis.
- [POV Wand](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/pov-wand.md): Use your Raspberry Breadstick as a POV (Persistance Of Vision) wand to draw images in the air using the LEDs!
- [Pride Flags POV Wand](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/pride-flags-pov-wand.md): Pride Month is here! Wave a Pride flag and spread some love!
- [6-Axis IMU](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/6-axis-imu.md): The LSM6DS integrates both a 3-Axis Accellerometer and a 3-Axis Gyroscope in its tiny 3mm x 2.5mm package!
- [RGB Blink](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/rgb-blink.md): Uses the DotStar library to blink the SK9822 addressable RGB LEDs.
- [AsyncIO RGB Blink](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/asyncio-rgb-blink.md): This time the leds are blinked without the busy delay of the time.sleep() method.
- [Digital Input](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/digital-input.md)
- [Digital Output](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/digital-output.md)
- [PWM](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/pwm.md): Pulse Width Modulation - If you flip an LED on and off quickly enough, you can control the brightness!
- [ADC](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/adc.md): Analog to Digital Conversion - Read a voltage and convert it to a number!
- [Servo Motor](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples/servo-motor.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
