loongson_commit_direction
loongson_commit_direction(lgpio, pin, 1);
loongson_commit_direction(lgpio, pin, 0);