AHT20TEMP(4)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’… AHT20TEMP(4) β€” aht20temp, bestie πŸ’…

okay so this is the Kernel Interfaces Manual page for aht20temp, and honestly? it's giving "tiny chip, big feelings." it lives in section 4 of the manual, so if you were looking for an adventure novel, this is not that β€” but it is lowkey iconic so stay with me 🫢


✨ NAME ✨

aht20temp β€” the driver for the Guangzhou Aosong AHT20 sensor chip, and it talks to your machine over the I2C bus. yes, Guangzhou Aosong AHT20 is the whole government name and we're respecting it πŸŽ€


🌸 SYNOPSIS 🌸

aht20temp* at iic? addr 0x38

that's the whole vibe. one line. slay.


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“: the aht20temp driver hands you measurements from the AHT20 humidity/temperature sensors β€” and it does it through the envsys(4) framework, so the readings land exactly where you'd expect them to. no cap.

the aht20temp addr argument is the one that picks the address on the iic(4) bus. and the crc validity? you can flip that around through sysctl(8) nodes. literally. that's the whole description, short and sweet, main character energy πŸ‘‘


🧚 SYSCTL VARIABLES 🧚

here's the lil family of sysctl(3) variables the driver provides β€” one bullet each, because we are organized:

  • hw.aht20temp0.ignorecrc β€” if you set this, the crc calculation for %RH and temperature gets straight-up ignored. πŸ™ˆ
  • hw.aht20temp0.debug β€” if the driver was compiled with AHT20_DEBUG, this node shows up in the list and you can use it to set the debugging level. it's giving "invite only" ngl πŸ’…
  • hw.aht20temp0.readattempts β€” okay so to read %RH or temperature, the chip needs the command sent first, then you gotta wait out a delay before you can read the values back. those delays are documented in the datasheet for the chip (read the datasheet bestie, it's lore πŸ“–). the driver will attempt to read back the values readattempts number of times. the default is 10, which should be more than enough for most purposes. ten. ten little tries. adorable. ⭐

πŸ”₯ SEE ALSO πŸ”₯

go read these, iykyk:


πŸ‘‘ HISTORY πŸ‘‘

the aht20temp driver first appeared in NetBSD 10.0. a debut. a moment. 🌈


πŸ’– AUTHORS πŸ’–

the aht20temp driver was written by Brad Spencer <brad@anduin.eldar.org>. thank you brad, king behavior 🫢


and that's the page!! πŸŽ€ this little rendering came to you courtesy of the Debian source/version line, dated November 15, 2022 β€” mwah, bye bestie πŸ’œβœ¨

πŸ“¦ where this page comes from