Skip to content

Commit 27b7b56

Browse files
committed
Corrected minor error in Exercise 2, read_light
1 parent b3df227 commit 27b7b56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/TKJHAT/src/sdk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ uint32_t veml6030_read_light() {
541541
// The i2c that you must use is i2c_default.
542542
// from the sensor. Make necessary bitwise operation to store the results in a register of 16 bits.
543543
// Multiply the value by the adequate value considering Integration Time of 100 ms and Gain of 1/8
544-
// using data of page 5 of VEML6030 datasheet.
544+
// using data of page 5 of VEML6030 design application document: https://www.vishay.com/docs/84367/designingveml6030.pdf
545545
// Finally, store the value in the variable luxVal_uncorrected.
546546
//
547547
// Tehtävä 2: Saadaksemme luminanssin meidän tulee lukea VEML6030_ALS_REG -rekisterin arvo (katso VEML6030-datalehti).
@@ -551,7 +551,7 @@ uint32_t veml6030_read_light() {
551551
// Käytettävä i2c-väylä on i2c_default.
552552
// Tee tarvittavat bittikohtaiset operaatiot tallettaksesi tuloksen 16-bittiseen rekisteriin.
553553
// Kerro arvo sopivalla kertoimella huomioiden 100 ms integraatioaika ja vahvistus 1/8
554-
// käyttäen VEML6030-datalehden sivun 5 tietoja.
554+
// käyttäen VEML6030-sovellussuunnitteluasiakirjan sivun 5 tietoja:https://www.vishay.com/docs/84367/designingveml6030.pdf
555555
// Lopuksi tallenna arvo muuttujaan luxVal_uncorrected.
556556

557557
uint32_t luxVal_uncorrected = 0;

0 commit comments

Comments
 (0)