Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

DFR0672 Datasheet(PDF) 9 Page - DFROBOT

Part # DFR0672
Description  SKU:DFR0672
PDF  26 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0672 Datasheet(HTML) 9 Page - DFROBOT

Back Button DFR0672 Datasheet HTML 5Page - DFROBOT DFR0672 Datasheet HTML 6Page - DFROBOT DFR0672 Datasheet HTML 7Page - DFROBOT DFR0672 Datasheet HTML 8Page - DFROBOT DFR0672 Datasheet HTML 9Page - DFROBOT DFR0672 Datasheet HTML 10Page - DFROBOT DFR0672 Datasheet HTML 11Page - DFROBOT DFR0672 Datasheet HTML 12Page - DFROBOT DFR0672 Datasheet HTML 13Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 26 page
background image
The current CPU tempterature will be printed on the Raspberry Pi terminal, and the fan speed
increases as the temperature goes up.
•
Codes Analysis
1. First, import file control library and I2C library. The path to check Raspberry Pi's CPU
temperature is defined as TEMP_PATH.
2. Define parameters related to CPU temperature and I2C.
3. Open CPU temperature file circularly and save fd_Temp (In Linux, everything is a file). If it fails to
open, return - 1. Next, read the temperature and save it in buf. also returns - 1 when failed.
After the temperature reading is saved to buf successfully, it need to be divided by 1000
because the value is relatively large, then the current temperature can be obtained in
centigrade, and save it to temp. Run the close() function to close the file manually after reading
the file.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com