[go: nahoru, domu]

Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad0x00 committed Sep 6, 2023
1 parent 544fe95 commit b3aa7dc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,30 @@

namespace cvslpr {

// The RTC should send a falling edge interrupt when the alarm expires
// to the following pin.
constexpr inline int RTC_INTERRUPT_PIN = 2;

// The bluetooth module should send a rising edge interrupt when it
// connects to a device to the following pin. The pin is likely named
// "STATE" on the bluetooth module.
constexpr inline int BLUETOOTH_INTERRUPT_PIN = 3;

// The SD card chip select pin.
constexpr inline int SD_CS_PIN = 4;

constexpr inline int BLUETOOTH_RX_PIN = 5;
constexpr inline int BLUETOOTH_TX_PIN = 6;

// The following pin might be named "EN" on the bluetooth module.
constexpr inline int BLUETOOTH_KEY_PIN = 7;

// The microcontroller will set this pin to HIGH when it wants to
// power on the bluetooth module and LOW when it wants to power it off.
constexpr inline int BLUETOOTH_ON_PIN = 8;

// The microcontroller will set this pin to HIGH when it wants to
// turn on the LED.
constexpr inline int LED_PIN = 9;

constexpr inline long BLUETOOTH_SERIAL_BAUD_RATE_CMD = 38400;
Expand Down

0 comments on commit b3aa7dc

Please sign in to comment.