On the Tinker Board , I have tested a simple GPIO application using preinstalled wiringPi C library. I also ran the same application on Raspberry Pi using preinstalled wiringPi C library, but I noticed that the Tinkerboard GPIO speed is very slow. I wonder why this is the case. I would appreciate, if someone share opinion about it. I've added the C program and attached oscilloscope screen-display for GPIO port speed for both Tinker Board and Raspberry Pi.
I tested Tinker Board with 2018-02-22-tinker-board-linaro-stretch-alip-v2.0.5 image. GPIO speed is about 158 Khz
I tested Raspberry PI 3 Model B with 2018-03-13-raspbian-stretch image. GPIO speed is about 1.92 Mhz
#include <stdio.h>
#include <wiringPi.h>
#define LED 0
int main (void)
{
printf ("TB blink\n");
wiringPiSetup ();
pinMode (LED, OUTPUT);
for (;
{
//printf ("led on\n");
digitalWrite (LED, HIGH);
//delay (500);
//printf ("led off\n");
digitalWrite (LED, LOW);
//delay (500);
}
return 0;
}
/* #define LED 0 matches with ASUS_GPIO 164!
This can be checked with command 'sudo gpio readall'.
To compile the script run the command:
sudo gcc -o blink blink.c -lwiringPi
To run the newly compiled led run the command:
sudo ./blink
*/