Try this super fast analog pin logger

Ok thanks, I will switch to analog accelerometer... I'm gonna try again, it should work on the 32u4, at least the interface because it's quite the same code as the Lowlatencylogger.

Edit: It's working. The following command was missing:

while(!Serial.available()) {
    SysCall::yield();
  }

I managed to log at 17kH on one channel this code is a beauty !!