Shows a multitude of different usages from periodic timers, ADCs, to ethernet while using interrupts.
Requires a Teensy 4.1 with the ethernet extension.
To run without any of the serial traces, simply use
pio run -e release --target upload
If you want to run this with serial monitor use
pio run -e debug --target upload
beware that this might actually be to slow to use at high sampling frequencies (not tested). Additionally, the execution will halt until a serial connection is established. On Linux you can use
screen /dev/ttyACM0 9600
if the user has been added to the dialout
group and the correct /etc/udev/
rules have been created.
The two options are provided by the platform.ini
file.
With the only difference being debug mode having an additional build flag -DSERIAL_DEBUG
.