Skip to content

Commit

Permalink
add VBUS detect pin to Sensor Watch boards
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Jul 10, 2024
1 parent 481a46f commit 0f74fd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/sensorwatch_blue/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "hal_gpio.h"

// Detects if we are on USB power.
HAL_GPIO_PIN(VBUS_DET, A, 3)

// Analog pins
HAL_GPIO_PIN(A0, B, 4)
Expand Down
2 changes: 2 additions & 0 deletions boards/sensorwatch_green/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "hal_gpio.h"

// Detects if we are on USB power.
HAL_GPIO_PIN(VBUS_DET, A, 3)

// Analog pins
HAL_GPIO_PIN(A0, B, 4)
Expand Down
2 changes: 2 additions & 0 deletions boards/sensorwatch_red/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "hal_gpio.h"

// Detects if we are on USB power.
HAL_GPIO_PIN(VBUS_DET, A, 3)

// Analog pins (hard-wired to board features on Sensor Watch Lite)
HAL_GPIO_PIN(A0, B, 4) // Redefined below, hard-wired to temperature sensor enable
Expand Down

0 comments on commit 0f74fd6

Please sign in to comment.