Skip to content

Commit

Permalink
Add missing DevKit board
Browse files Browse the repository at this point in the history
DevKit board profile has not be committed due to gitignore.
  • Loading branch information
Abász committed Dec 16, 2024
1 parent 916cc92 commit b63f930
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ src/custom.settings.h
src/profiles/*
!src/profiles/generic.rower-profile.h
!src/profiles/generic.board-profile.h
!src/profiles/devkit.board-profile.h
!src/profiles/lolinS3-mini.board-profile.h
!src/profiles/kayakfirst.rower-profile.h
!src/profiles/kayakfirstBlue.rower-profile.h
Expand Down
33 changes: 33 additions & 0 deletions src/profiles/devkit.board-profile.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#pragma once

#include "../utils/enums.h"

// NOLINTBEGIN(cppcoreguidelines-macro-usage, cppcoreguidelines-macro-to-enum)

// General settings
#define BAUD_RATE BaudRates::Baud1500000
#define BLE_SIGNAL_STRENGTH BleSignalStrength::MaxPower
#define SUPPORT_SD_CARD_LOGGING true

// LED settings
#define LED_BLINK_FREQUENCY 1'000
#define LED_PIN LED_BUILTIN // Use GPIO_NUM_NC if no led is available
#define IS_RGB false

// Hardware settings
#define SENSOR_PIN_NUMBER GPIO_NUM_13
#define SENSOR_ON_SWITCH_PIN_NUMBER GPIO_NUM_NC // Use GPIO_NUM_NC if no sensor switch is available
#define WAKEUP_SENSOR_PIN_NUMBER GPIO_NUM_NC // Use GPIO_NUM_NC if no separate wakeup pin is available
#define SD_CARD_CHIP_SELECT_PIN GPIO_NUM_5

// Device power management settings
#define BATTERY_PIN_NUMBER GPIO_NUM_NC
#define VOLTAGE_DIVIDER_RATIO 2
#define BATTERY_VOLTAGE_MIN 3.3
#define BATTERY_VOLTAGE_MAX 4.00
#define BATTERY_LEVEL_ARRAY_LENGTH 5
#define INITIAL_BATTERY_LEVEL_MEASUREMENT_COUNT 10
#define BATTERY_MEASUREMENT_FREQUENCY 10
#define DEEP_SLEEP_TIMEOUT 4

// NOLINTEND(cppcoreguidelines-macro-usage, cppcoreguidelines-macro-to-enum)

0 comments on commit b63f930

Please sign in to comment.