This example show how to control GPIO (pin 18 in this example) using C language. testPin.c #include #include #include #include #define BCM2708_PERI_B…
قراءة المزيدThe following code copy file using C language, run in Raspberry Pi. copy file using C #include #include int main(int argc, char *argv[]){ int…
قراءة المزيدExample of using GtkBox . Example of using GtkBox helloGtkBox.c #include int main(int argc, char *argv[]) { GtkWidget *window; GtkWidget *la…
قراءة المزيدLast post show how to Install gtk+ on Raspberry Pi and with a very simple "Hello World" to GTK+ . It's modified version of the Hello W…
قراءة المزيدThis post show how to install gtk+2.0 on Raspberry Pi, and create our first "Hello World" of GTK+ on Raspberry Pi. GTK+ program on Raspberr…
قراءة المزيدThe function popen() execute command and returning a pointer to the stream which can be used to read the result. run host command and get result with…
قراءة المزيدTo run host command in C program, call system() of stdlib. run host command with system() #include #include int main(){ system("df -h"); …
قراءة المزيدLast post show how to control Raspberry Pi on-board LED OK or ACT in command line . This post show the code to control the LED using C language, it h…
قراءة المزيدThe post show how to use the editor nano to create a C's source code of "Hello World", then compile with gcc, and run it. All tools, na…
قراءة المزيد
Social Plugin