-
-
Notifications
You must be signed in to change notification settings - Fork 264
Custom Buttons
Custom buttons are only possible on the tile gui - not on the classic interface.
Buttons are created by creating a config file in /boot/crankshaft/
, one at a time, for each custom button.
The config files must be are named button_1
, button_2
, etc. up to a max of 8 buttons.
You can create the config files yourself or through the Crankshaft Management Tool via a terminal:
crankshaft buttons 1
... for example, creates a config file for button 1 with default details, allowing you to then customize the button to your specific needs.
The config is a combination of three parts:
-
Label (the text to appear on your button)
-
Command (the command should to be executer when your button is pressed e.g.
/boot/crankshaft/custom/mycommand
) -
Color code (the color for your button, as an RGB value - by default gray is assigned if not defined)
As delimater
#
is used.
A config should look like this:- Including color setup:
Label#/path/to/my/command#255,255,255#
- Without color setup:
Label#/path/to/my/command##
- Including color setup:
Notes:
- Button 1 & 2 are sharing the same cell - like 3 & 4 and 5 & 6.
- If only one button per cell is defined it will use the whole cell.
- Button 7 is shared with rpi cam if enbled.
- Button 8 is shared with debug if enabled.
- If a cell is empty it will be filled with a dummy to complete the layout.
- Home
- Roadmap
- General Changes / Changelog
- Installing / Updating
- When Issue occur
- Hardware
- Configuration
- Features
- Home
- Get started
- Hardware
- Software and Settings
- For Advanced Users
- Et Cetera