Skip to content
alt

Showcases

The following section will show you some examples as well as explanations on the main function for Hermes-Five.

INFO

Up-to-date and more detailed and numerous examples can be found in the repository examples folder.

Various Hardware

  • board/creation.rs: Shows how to instantiate a simple board using various protocols / transports layer.
  • board/events.rs: Shows how to react to board events.
  • board/hardware.rs: Shows how to access and control the hardware associated with a board: low level style!

Generic devices

Output

  • output/digital.rs: Demonstrates how to control a digital output pin, regardless of the device type associated with it.
  • output/pwm.rs: Demonstrates how to control a pwm output pin, regardless of the device type associated with it.

Input

Various devices

LED

  • led/simple.rs: Demonstrates how to turn on/off a simple led.
  • led/brightness.rs: Demonstrates how to use a simple led with control over its brightness (requires a pwm pin).
  • led/blink.rs: Demonstrates how to blink a simple led.
  • led/pulse.rs: Demonstrates how to pulse a simple led (requires a pwm pin).
  • led/animate.rs: Demonstrates how to animate a led state.

Servo

  • servo/servo.rs: Demonstrates how to use and control a servo.
  • servo/sweep.rs: Demonstrates how to loop sweep a servo in a given range of motion.
  • servo/animate.rs: Demonstrates how to move a servo in an animated way (control of speed).
  • servo/pca9685.rs: Demonstrates how to move a servo via a PWM-driver like PCA9685.

Button

Animation

Released under the MIT License.