aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-11 18:22:32 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-11 18:22:32 +0200
commit1d385074e33f831e88499603c46e25170b770ada (patch)
tree2c3be484018110bdf652cf69f363d6d35d456838 /stm32f091/main.c
parent5b1f94522624e18fe9fd94478ada1c8d8997b747 (diff)
working data receive from si7021 module
Diffstat (limited to 'stm32f091/main.c')
-rw-r--r--stm32f091/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stm32f091/main.c b/stm32f091/main.c
index aec5869..9235f1b 100644
--- a/stm32f091/main.c
+++ b/stm32f091/main.c
@@ -9,6 +9,11 @@
int main() {
ws_io_setup();
+ HAL_GPIO_Init(GPIOA, &(GPIO_InitTypeDef) {
+ .Pin = GPIO_PIN_5,
+ .Mode = GPIO_MODE_OUTPUT_PP,
+ .Pull = GPIO_NOPULL
+ });
ws_backlog_alloc(24 * 60);
ws_sensor_read();