digitalWrite made sync with writefilesync function