Good! Nice work.

Use 511 in the aiptek.conf, because 0 is a level. So 512 levels is 0 to 511.