Skip to content

Instantly share code, notes, and snippets.

View abonellitoro's full-sized avatar
🏠
Working from home

Augusto abonellitoro

🏠
Working from home
View GitHub Profile
@pklaus
pklaus / arduino-due_high-speed-ADC.ino
Last active September 3, 2024 05:45
Arduino Due: ADC → DMA → USB @ 1MSPS
#undef HID_ENABLED
// Arduino Due ADC->DMA->USB 1MSPS
// by stimmer
// from http://forum.arduino.cc/index.php?topic=137635.msg1136315#msg1136315
// Input: Analog in A0
// Output: Raw stream of uint16_t in range 0-4095 on Native USB Serial/ACM
// on linux, to stop the OS cooking your data:
// stty -F /dev/ttyACM0 raw -iexten -echo -echoe -echok -echoctl -echoke -onlcr