1.1 --- a/c++/lpt-signal-generator/lpt.cpp Sun Jun 11 12:51:19 2017 +0200
1.2 +++ b/c++/lpt-signal-generator/lpt.cpp Sun Jun 11 13:07:53 2017 +0200
1.3 @@ -44,7 +44,12 @@
1.4 // so "duration" means total sleep time
1.5
1.6 // TODO: data types revision
1.7 +// TODO: time units s, μs, ns – naming convention / unification
1.8
1.9 +/**
1.10 + * generates square wave signal on a parallel port pin with given frequency and duty cycle
1.11 + * mode info: https://blog.frantovo.cz/c/358/Paraleln%C3%AD%20port%20jako%20gener%C3%A1tor%20sign%C3%A1lu
1.12 + */
1.13 int main() {
1.14 //cout << "LPT!" << endl; // same as using printf → breaks all folllowing wprintf() calls, see note above
1.15
1.16 @@ -98,7 +103,7 @@
1.17 auto calibrationCycles = 10000;
1.18 auto calibrationSleepTime = 10;
1.19
1.20 - for (auto i = calibrationCycles; i > 0; i--) {
1.21 + for (auto i = calibrationCycles; i > 0; i--) {
1.22 outb(0b00000000, addr);
1.23 usleep(calibrationSleepTime);
1.24 outb(0b00000000, addr);