Skip to content

Commit

Permalink
fix: fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikRevich committed Apr 2, 2024
1 parent 45433b0 commit 953ce03
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ generate: ## Generate prerequisites

.PHONY: build
build: ## Build the IOC project
@cd ./code/go/0chain.net/authorizer/ && go mod download && go mod tidy && CGO_ENABLED=1 go test -v -tags bn256 ./...

.PHONY: all
all: generate build
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# light-detector

[![Build](https://github.com/YarikRevich/ResourceTracker/actions/workflows/build.yml/badge.svg)](https://github.com/YarikRevich/ResourceTracker/actions/workflows/build.yml)
![STM32](https://img.shields.io/badge/stm32-blue)
[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

## General Information

A driver-like application, which allows to communicate with TSL2591X light sensor with the help of CLI, based on STM32L476RG embedded system.

Includes following features:
* Retrieve latest sensor data(**raw**, **full**, **infrared**, **visible**)
* Retrieve meta information from the internal board state
* Modify settings for the light sensor.

## Setup

All setup related operations are processed via **Makefile** placed in the root directory.

In order to build IOC project it's required to execute the following command. It uses **CubeMX CLI** to generate **ELF** upload file:
```shell
make build
```

Built **ELF** file is intended to be used for manual upload via **STM Programmer**.

If **ProtocolBuffers** files need to be regenerated it's required to execute the following command:
```shell
make generate
```

0 comments on commit 953ce03

Please sign in to comment.