> For the complete documentation index, see [llms.txt](https://learn.breadstick.ca/breadstick/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.breadstick.ca/breadstick/breadsticks/raspberry-breadstick/code-examples.md).

# 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)
