brorson / ADC-001_basic_code

Basic programs for development and test of the ADC-001 cape
GNU General Public License v3.0
3 stars 3 forks source link

Added mainstream2, which collects and prints samples "forever" (until interupt [^C]) #7

Closed RobertPHeller closed 4 years ago

RobertPHeller commented 4 years ago

I added mainstream2.cc. This is the same as mainstream1.cc, except without the time out, instead it runs until interupted.

To send to a serial port (UART), you need to add one of the UART device trees -- do a ls /lib/firmware/UART to find the DT file to add to /boot/uEnv.txt. Then run the program with /dev/ttySn, for UARTn, where n is 1, 2, 3, 4, or 5.