michaelobed / square-wave-gen

A slightly boring tool to accurately* generate square waves for test purposes.
Apache License 2.0
0 stars 0 forks source link

Add error calculation #4

Open michaelobed opened 10 months ago

michaelobed commented 10 months ago

It's very possible that changes to frequency will result in a period being calculated that's slightly out from the requested frequency. Similarly, a requested period can result in a frequency that is not an integer. There should probably be a way of printing this information to the UART.