Add my config, nix shell file

This commit is contained in:
Fern Garden 2024-08-01 16:30:46 +08:00
parent e732afbec6
commit 2a1f9db28f
2 changed files with 28 additions and 14 deletions

8
movement/make/shell.nix Normal file
View file

@ -0,0 +1,8 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
# nativeBuildInputs is usually what you want -- tools you need to run
nativeBuildInputs = with pkgs.buildPackages; [
gcc-arm-embedded
emscripten
];
}

View file

@ -28,15 +28,21 @@
#include "movement_faces.h" #include "movement_faces.h"
const watch_face_t watch_faces[] = { const watch_face_t watch_faces[] = {
simple_clock_face, clock_face,
world_clock_face, world_clock2_face,
sunrise_sunset_face, alarm_face,
moon_phase_face, timer_face,
stopwatch_face, stock_stopwatch_face,
probability_face,
sunrise_sunset_face,
moon_phase_face,
breathing_face,
thermistor_readout_face,
preferences_face, preferences_face,
set_time_face, save_load_face,
thermistor_readout_face, set_time_face,
voltage_face finetune_face,
nanosec_face,
}; };
#define MOVEMENT_NUM_FACES (sizeof(watch_faces) / sizeof(watch_face_t)) #define MOVEMENT_NUM_FACES (sizeof(watch_faces) / sizeof(watch_face_t))
@ -47,19 +53,19 @@ const watch_face_t watch_faces[] = {
* Some folks also like to use this to hide the preferences and time set faces from the normal rotation. * Some folks also like to use this to hide the preferences and time set faces from the normal rotation.
* If you don't want any faces to be excluded, set this to 0 and a long Mode press will have no effect. * If you don't want any faces to be excluded, set this to 0 and a long Mode press will have no effect.
*/ */
#define MOVEMENT_SECONDARY_FACE_INDEX (MOVEMENT_NUM_FACES - 2) // or (0) #define MOVEMENT_SECONDARY_FACE_INDEX (MOVEMENT_NUM_FACES - 5) // or (0)
/* Custom hourly chime tune. Check movement_custom_signal_tunes.h for options. */ /* Custom hourly chime tune. Check movement_custom_signal_tunes.h for options. */
#define SIGNAL_TUNE_DEFAULT #define SIGNAL_TUNE_ZELDA_SECRET
/* Determines the intensity of the led colors /* Determines the intensity of the led colors
* Set a hex value 0-15 with 0x0 being off and 0xF being max intensity * Set a hex value 0-15 with 0x0 being off and 0xF being max intensity
*/ */
#define MOVEMENT_DEFAULT_GREEN_COLOR 0xF #define MOVEMENT_DEFAULT_GREEN_COLOR 0x10
#define MOVEMENT_DEFAULT_RED_COLOR 0x0 #define MOVEMENT_DEFAULT_RED_COLOR 0xF
/* Set to true for 24h mode or false for 12h mode */ /* Set to true for 24h mode or false for 12h mode */
#define MOVEMENT_DEFAULT_24H_MODE false #define MOVEMENT_DEFAULT_24H_MODE true
/* Enable or disable the sound on mode button press */ /* Enable or disable the sound on mode button press */
#define MOVEMENT_DEFAULT_BUTTON_SOUND true #define MOVEMENT_DEFAULT_BUTTON_SOUND true
@ -93,6 +99,6 @@ const watch_face_t watch_faces[] = {
* 2: 3 seconds * 2: 3 seconds
* 3: 5 seconds * 3: 5 seconds
*/ */
#define MOVEMENT_DEFAULT_LED_DURATION 1 #define MOVEMENT_DEFAULT_LED_DURATION 3
#endif // MOVEMENT_CONFIG_H_ #endif // MOVEMENT_CONFIG_H_