Cargo Features

[dependencies]
pybadge-high = { version = "0.2.0", default-features = false, features = ["beep_panic", "bluescreen", "bluescreen-message-nightly", "neopixel", "usb", "pwm_sound", "time"] }
default = bluescreen, time

These default features are set whenever pybadge-high is added without default-features = false somewhere in the dependency tree.

beep_panic

beep for 3 seconds, when rust pancics

bluescreen default

show a bluescreen with error postion, when rust pancics

Enables heapless ^0.7.16

bluescreen-message-nightly

show also error message at bluescreen, when rust panics.

This features depends on rust nightly features and needs the nightly toolchain.
It has no effect, when compiled with stable.
Because it use nightly features it might break in future rust versions.

neopixel

support for the Neopixel below the screen

Enables embedded-hal ^0.2.7, smart-leds-trait ^0.2.1, and ws2812-timer-delay

Affects pybadge-high::NeoPixel, pybadge-high::NeoPixelColor, pybadge-high::PyBadge.neopixel

usb

support for serial communication over usb

Enables usb-device ^0.2.9, usb of edgebadge

Affects pybadge-high::usb, pybadge-high::PyBadge.usb_builder

pwm_sound

support for single frequenc sound

Affects pybadge-high::PyBadge.speaker

time default

support for time measurement

Affects time::uptime