added new script based on GPIO drive for cubieboard 2