Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
45d5cabd9This file is pinned to the selected release. Download the original to open it in your design tool.
"""See menu.md for details."""
# Reset the module state and display bootsplash screen.
from europi import bootsplash, usb_connected
# This is a fix for a USB connection issue documented in GitHub issue #179, and its removal condition is set out in GitHub issue #184
if usb_connected.value() == 0:
from time import sleep
sleep(0.5)
bootsplash()
from bootloader import BootloaderMenu
from collections import OrderedDict
## Scripts that are included in the menu
#
# Keys are the names displayed in the menu, values are the fully-qualified names
# of the classes to launch. The classes MUST be EuriPiScript subclasses
#
# The OLED can display up to 16 characters horizontally, so make sure the names fit
# that width requirement
#
# fmt: off
EUROPI_SCRIPTS = OrderedDict([
# ["0123456789abcdef", "contrib.spam.Eggs"],
["Bernoulli Gates", "contrib.bernoulli_gates.BernoulliGates"],
["Coin Toss", "contrib.coin_toss.CoinToss"],
["Consequencer", "contrib.consequencer.Consequencer"],
["CVecorder", "contrib.cvecorder.CVecorder"],
["Diagnostic", "contrib.diagnostic.Diagnostic"],
["EnvelopeGen", "contrib.envelope_generator.EnvelopeGenerator"],
["Euclid", "contrib.euclid.EuclideanRhythms"],
["Hamlet", "contrib.hamlet.Hamlet"],
["HarmonicLFOs", "contrib.harmonic_lfos.HarmonicLFOs"],
["HelloWorld", "contrib.hello_world.HelloWorld"],
["KnobPlayground", "contrib.knob_playground.KnobPlayground"],
["Kompari", "contrib.kompari.Kompari"],
["Logic", "contrib.logic.Logic"],
["MasterClock", "contrib.master_clock.MasterClock"],
["NoddyHolder", "contrib.noddy_holder.NoddyHolder"],
["Pam's Workout", "contrib.pams.PamsWorkout"],
["Particle Phys.", "contrib.particle_physics.ParticlePhysics"],
["Piconacci", "contrib.piconacci.Piconacci"],
["PolyrhythmSeq", "contrib.polyrhythmic_sequencer.PolyrhythmSeq"],
["PolySquare", "contrib.poly_square.PolySquare"],
["Probapoly", "contrib.probapoly.Probapoly"],
["Quantizer", "contrib.quantizer.QuantizerScript"],
["RadioScanner", "contrib.radio_scanner.RadioScanner"],
["Sequencer", "contrib.sequencer.Sequencer"],
["Scope", "contrib.scope.Scope"],
["Seq. Switch", "contrib.sequential_switch.SequentialSwitch"],
["Smooth Rnd Volts", "contrib.smooth_random_voltages.SmoothRandomVoltages"],
["StrangeAttractor", "contrib.strange_attractor.StrangeAttractor"],
["Turing Machine", "contrib.turing_machine.EuroPiTuringMachine"],
["_Calibrate", "calibrate.Calibrate"] # this one should always be last!
])
# fmt: on
if __name__ == "__main__":
BootloaderMenu(EUROPI_SCRIPTS).main()