721
edits
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
# Click the export button to generate the setup code for your teensy and paste it in your Arduino IDE patch! | # Click the export button to generate the setup code for your teensy and paste it in your Arduino IDE patch! | ||
# In the setup routine of the arduino IDE you need code to choose the microphone port and audio levels. It should look more or less like this: | # In the setup routine of the arduino IDE you need code to choose the microphone port and audio levels. It should look more or less like this: | ||
<syntaxhighlight lang="c++"> | |||
void setup() { | void setup() { | ||
// Audio connections require memory to work. For more | // Audio connections require memory to work. For more | ||
Line 31: | Line 31: | ||
sgtl5000_1.volume(0.8); // from 0.0 to 1.0 // 0.8 standard | sgtl5000_1.volume(0.8); // from 0.0 to 1.0 // 0.8 standard | ||
} | } | ||
</syntaxhighlight> | |||
# Press upload and compile the patch. | # Press upload and compile the patch. |