en:pfw:dht22-rp2040-nofortht
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:pfw:dht22-rp2040-nofortht [2025-06-29 13:21] – willem | en:pfw:dht22-rp2040-nofortht [2025-06-29 13:25] (current) – willem | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| < | < | ||
| - | (* DHT22 sensor, using PIO: 428 bytes | + | (* DHT22 sensor, using PIO: 424 bytes |
| - | | + | |
| 40-bits pulse stream 32-bits data & 8-bits checksum | 40-bits pulse stream 32-bits data & 8-bits checksum | ||
| Line 56: | Line 56: | ||
| : READ) ( -- data chk ) | : READ) ( -- data chk ) | ||
| one> 0 exec-opc | one> 0 exec-opc | ||
| - | begin 0 rx-depth 1- until \ Stack minimal two deep? | + | begin 0 rx-depth 1- until \ Fifo minimal two deep? |
| 0 rxf> | 0 rxf> | ||
| Line 67: | Line 67: | ||
| : CHKS ( data -- chks ) \ Calculate checksum | : CHKS ( data -- chks ) \ Calculate checksum | ||
| h-h b-b + swap \ Split & calc. checksum | h-h b-b + swap \ Split & calc. checksum | ||
| - | b-b + + | + | b-b + + |
| : READ ( -- t h ) | : READ ( -- t h ) | ||
en/pfw/dht22-rp2040-nofortht.1751196077.txt.gz · Last modified: 2025-06-29 13:21 by willem