Replaced analogRead with C function with higher sample rate, updated definitions to remove Arduino assignments.