Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
en:c_16x2lcd_cpuinfo [2014/12/19 15:59] john1117 [Display system informations] |
en:c_16x2lcd_cpuinfo [2014/12/19 16:00] (current) john1117 [Display system informations] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Display system informations ====== | ||
+ | How to compile with wiringPi librarys | ||
+ | <code> | ||
+ | # gcc -o [output file name] [c file name] -lwiringPi -lwiringPiDev -lpthread | ||
+ | </code> | ||
+ | ==== 1. Display current CPU speed and CPU temperature ==== | ||
+ | {{:en:c1:16x2lcd_sysinfo.jpg?300|}} | ||
+ | [[lcd_cpuInfo.c | lcd_cpuInfo.c]] | ||
+ | |||
+ | ==== 2. Display system time==== | ||
+ | {{:en:c1:16x2lcd_time.jpg?300|}} | ||
+ | |||
+ | [[lcd_time.c | lcd_time.c]] |