Fixed bugs

flush(): change name to __flush()
init_encoder(resolution): resolution max value change to 255
Fixed bug in struct.pack in spi_config(): '!BBB' change to '!BBBB'