Fix analog write (which never actually worked)