AHT20TEMP(4)
π 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%RHand temperature gets straight-up ignored. πhw.aht20temp0.debugβ if the driver was compiled withAHT20_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%RHor 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 valuesreadattemptsnumber of times. the default is10, 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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2022 Brad Spencer <brad@anduin.eldar.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms