diff options
author | SudhakarKuma | 2021-05-03 12:00:52 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-05-03 12:00:52 +0530 |
commit | 97e3b0fcbba9373e5881e6a3ff60d26aced56cdd (patch) | |
tree | 9885e1424e5bf682a03bac82d66fe766cb73dd80 | |
parent | 6d2a66e4dcfb943beb6465d46c6a33c389d29868 (diff) | |
download | FLOSS-Arduino-Book-97e3b0fcbba9373e5881e6a3ff60d26aced56cdd.tar.gz FLOSS-Arduino-Book-97e3b0fcbba9373e5881e6a3ff60d26aced56cdd.tar.bz2 FLOSS-Arduino-Book-97e3b0fcbba9373e5881e6a3ff60d26aced56cdd.zip |
Update codes
-rw-r--r-- | floss-arduino.fdb_latexmk | 92 | ||||
-rw-r--r-- | floss-arduino.log | 6 | ||||
-rw-r--r-- | floss-arduino.pdf | bin | 21056458 -> 21056445 bytes | |||
-rw-r--r-- | indent.log | 25 | ||||
-rw-r--r-- | user-code/led/led.tex | 2 | ||||
-rw-r--r-- | user-code/push/OpenModelica/led-push-button.mo | 2 | ||||
-rw-r--r-- | user-code/push/push.tex | 12 |
7 files changed, 57 insertions, 82 deletions
diff --git a/floss-arduino.fdb_latexmk b/floss-arduino.fdb_latexmk index ce2d5b5..590b596 100644 --- a/floss-arduino.fdb_latexmk +++ b/floss-arduino.fdb_latexmk @@ -1,19 +1,19 @@ # Fdb version 3 -["bibtex floss-arduino"] 1620004082 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1620004233 +["bibtex floss-arduino"] 1620022096 "floss-arduino.aux" "floss-arduino.bbl" "floss-arduino" 1620023379 "/usr/share/texlive/texmf-dist/bibtex/bst/base/unsrt.bst" 1292289607 18030 1376b4b231b50c66211e47e42eda2875 "" "bibliography.bib" 1619993144 4331 898f586dba696884b42be7c094b1315e "" - "floss-arduino.aux" 1620004232 137803 8bfc645d97fee466fb695739418c3ea0 "pdflatex" + "floss-arduino.aux" 1620023378 137803 8bfc645d97fee466fb695739418c3ea0 "pdflatex" (generated) - "floss-arduino.blg" "floss-arduino.bbl" -["makeindex floss-arduino.idx"] 1620004082 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1620004233 - "floss-arduino.idx" 1620004232 187 dcf8a889d1a3d335c15321e8b47c70af "pdflatex" + "floss-arduino.blg" +["makeindex floss-arduino.idx"] 1620022062 "floss-arduino.idx" "floss-arduino.ind" "floss-arduino" 1620023379 + "floss-arduino.idx" 1620023378 187 dcf8a889d1a3d335c15321e8b47c70af "pdflatex" (generated) - "floss-arduino.ind" "floss-arduino.ilg" -["pdflatex"] 1620004224 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1620004233 + "floss-arduino.ind" +["pdflatex"] 1620023367 "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" "floss-arduino" 1620023379 "/etc/texmf/web2c/texmf.cnf" 1602253014 475 c0e671620eb5563b2130f56340a5fde8 "" - "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1620004232 137803 8bfc645d97fee466fb695739418c3ea0 "" + "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.aux" 1620023378 137803 8bfc645d97fee466fb695739418c3ea0 "" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.tex" 1619403261 4558 99e8133d713ce68a01e2f2b59b0d6baf "" "/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc" 1165713224 4850 80dc9bab7f31fb78a000ccfed0e27cab "" "/usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map" 1577235249 3524 cb3e574dea2d1052e39280babc910dc8 "" @@ -138,18 +138,18 @@ "/usr/share/texmf/web2c/texmf.cnf" 1581979058 38841 ce3692aa899bb693b90b87eaa5d4d84e "" "/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1604540077 4770781 1ed1abab22da9c3e2cc82e4db562318b "" "/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1604540101 8258883 e8330f8aa4fe7c6cdcf08bf0b72237fd "" - "floss-arduino.OpenModelicad" 1620004232 2303 51deaa312371307adb5901ac4366a580 "pdflatex" - "floss-arduino.ard" 1620004232 2081 dda8c65de0d2953bf41194263fe92b4b "pdflatex" - "floss-arduino.aux" 1620004232 137803 8bfc645d97fee466fb695739418c3ea0 "pdflatex" - "floss-arduino.bbl" 1620004083 2782 f2a4ed925cf6e3e12688ffdf458c1df4 "bibtex floss-arduino" - "floss-arduino.cod" 1620004232 2505 8dab91c620da18100f500ed55bdfe272 "pdflatex" - "floss-arduino.ind" 1620004082 228 3b82961b4e725f6037e1e500c4583f23 "makeindex floss-arduino.idx" - "floss-arduino.juliad" 1620004232 2337 fad3bb9035b746182d84a708d50b7809 "pdflatex" - "floss-arduino.lof" 1620004232 13306 e9531397268dcf377d3faebedb06e646 "pdflatex" - "floss-arduino.lot" 1620004232 3702 a9bb81bf6b50f71cc0c5d9311f440fa2 "pdflatex" - "floss-arduino.pyd" 1620004232 2332 d7197865bf1d028ba5b9cbe19639e8b0 "pdflatex" + "floss-arduino.OpenModelicad" 1620023378 2303 51deaa312371307adb5901ac4366a580 "pdflatex" + "floss-arduino.ard" 1620023378 2081 dda8c65de0d2953bf41194263fe92b4b "pdflatex" + "floss-arduino.aux" 1620023378 137803 8bfc645d97fee466fb695739418c3ea0 "pdflatex" + "floss-arduino.bbl" 1620022097 2782 f2a4ed925cf6e3e12688ffdf458c1df4 "bibtex floss-arduino" + "floss-arduino.cod" 1620023378 2505 8dab91c620da18100f500ed55bdfe272 "pdflatex" + "floss-arduino.ind" 1620022062 228 3b82961b4e725f6037e1e500c4583f23 "makeindex floss-arduino.idx" + "floss-arduino.juliad" 1620023378 2337 fad3bb9035b746182d84a708d50b7809 "pdflatex" + "floss-arduino.lof" 1620023378 13306 e9531397268dcf377d3faebedb06e646 "pdflatex" + "floss-arduino.lot" 1620023378 3702 a9bb81bf6b50f71cc0c5d9311f440fa2 "pdflatex" + "floss-arduino.pyd" 1620023378 2332 d7197865bf1d028ba5b9cbe19639e8b0 "pdflatex" "floss-arduino.tex" 1619403261 4558 99e8133d713ce68a01e2f2b59b0d6baf "" - "floss-arduino.toc" 1620004232 15730 9598f17f17df2a32992f73e792130ac1 "pdflatex" + "floss-arduino.toc" 1620023378 15730 9598f17f17df2a32992f73e792130ac1 "pdflatex" "suppl/acr.tex" 1615963613 1926 fd6481c4666ee0d60331b7d4cc24b645 "" "suppl/intro.tex" 1615963613 3437 b09628cf9e20fe17fa65b37a5997653c "" "suppl/styles.tex" 1615963613 8143 aa3280f0b59c8631fe8ec44895c9e871 "" @@ -216,10 +216,10 @@ "user-code/ldr/python/ldr-read.py" 1619892935 690 aa838d76cfdd26b26fb76e669b4ff0dd "" "user-code/ldr/scilab/ldr-led.sce" 1619881130 474 be365b56cb8d934670aab6d7d4b2e04b "" "user-code/ldr/scilab/ldr-read.sce" 1619879948 382 a67eb4bfda1600b38cb4a32f7170c132 "" - "user-code/led/OpenModelica/led-blue-delay.mo" 1619681460 971 14e962d372f69cf70983a8161d05a424 "" - "user-code/led/OpenModelica/led-blue-red.mo" 1619402018 1153 936d3de74c2858225d14f194e8dad81b "" - "user-code/led/OpenModelica/led-blue.mo" 1619664517 797 637792619e79706e15fa30426a6fb517 "" - "user-code/led/OpenModelica/led-green-blink.mo" 1619402026 1092 2cf4b168f1de4b87c38b18892c3a5e35 "" + "user-code/led/OpenModelica/led-blue-delay.mo" 1620022023 974 b66fe8fce6005b87afc23c6d7d3009e5 "" + "user-code/led/OpenModelica/led-blue-red.mo" 1620022023 1154 7e5164d0b0a78fcd7a6327bbfff835c9 "" + "user-code/led/OpenModelica/led-blue.mo" 1620022023 802 063ab42c583ad7e9203c09fdac11beb2 "" + "user-code/led/OpenModelica/led-green-blink.mo" 1620022023 1098 58f96b5892b748dbca27a4411f54fd08 "" "user-code/led/arduino/led-blue-delay/led-blue-delay.ino" 1619653754 134 a265af0df0c837b3860a1bd8f4f17db3 "" "user-code/led/arduino/led-blue-red/led-blue-red.ino" 1619653892 215 db5fdea678579e2b65dbcaddcca033c6 "" "user-code/led/arduino/led-blue/led-blue.ino" 1619653669 99 25f30fcd7cc7d7b6b9aa222deff00437 "" @@ -234,14 +234,14 @@ "user-code/led/figures/rgb-led-bb.png" 1617583787 241915 7c5374def5f441085b2d93294dde7979 "" "user-code/led/figures/schematic.png" 1615963614 34562 2b5d2cb148a99242ffb4343097ced0a0 "" "user-code/led/julia/led-blue-delay.jl" 1619663062 213 dd9c8a8b157baac9432478c33b8aa14e "" - "user-code/led/julia/led-blue-red.jl" 1617923932 320 02d5d14ebbd49cd33b25a9828492945c "" + "user-code/led/julia/led-blue-red.jl" 1620022023 332 919a1421675457207ff70ee12da93ac6 "" "user-code/led/julia/led-blue.jl" 1619662025 170 c9cc13e4fb6e898855537bb9e1f2a787 "" "user-code/led/julia/led-green-blink.jl" 1619663087 249 d785472e844af87c34e32322ccb211e2 "" - "user-code/led/led.tex" 1619779768 47356 be84fa6520b4b89444827d232822a061 "" + "user-code/led/led.tex" 1620022687 47356 4fa600309b571d1dd863ba326999c162 "" "user-code/led/python/led-blue-delay.py" 1619660150 805 9c5bde89850fc3b25ced778dfafe1dcf "" "user-code/led/python/led-blue-red.py" 1619660175 1039 339cefbe997737f931646cba049b8d12 "" "user-code/led/python/led-blue.py" 1619658381 723 be6248a455119500e6930030c0c92250 "" - "user-code/led/python/led-green-blink.py" 1619660188 800 32d638187fbc636f2341d462458ae87c "" + "user-code/led/python/led-green-blink.py" 1620022023 800 7d238166a3ec7776881175fdee95f619 "" "user-code/led/scilab/led-blue-delay.sce" 1619654724 306 971bfdb5febffab85ff7e39d9486f19f "" "user-code/led/scilab/led-blue-red.sce" 1619654755 534 9ed44e179f5f8f2d1833438c6e950670 "" "user-code/led/scilab/led-blue.sce" 1619654435 264 54ed7e9095e17363e0ce5fb00cade1d1 "" @@ -285,23 +285,23 @@ "user-code/pot/pot.tex" 1619921643 20544 41bb6d8b92381a37113ebdb143ed16ac "" "user-code/pot/python/pot-threshold.py" 1619917118 1192 57f2bbe05f09be305d373bbef1784fc9 "" "user-code/pot/scilab/pot-threshold.sce" 1619912741 682 700456e60fd54275fc23243a476cc8cc "" - "user-code/push/OpenModelica/led-push-button.mo" 1619834710 1179 3ebcda1f9950867d9c9277914c6ea5ab "" - "user-code/push/OpenModelica/push-button-status.mo" 1619834833 1002 24bae7d78e06a0645e175238514684d5 "" - "user-code/push/arduino/led-push-button/led-push-button.ino" 1619822895 398 332d9ebfa0416fc792c2bf525a995a1a "" - "user-code/push/arduino/push-button-status/push-button-status.ino" 1619748698 377 9389a7a25c871ff815e529b8b21e5e20 "" + "user-code/push/OpenModelica/led-push-button.mo" 1620023350 1226 c823f27eb8ddafbc85d7beeeab95e952 "" + "user-code/push/OpenModelica/push-button-status.mo" 1620022023 1002 404445ef6477d66c90debf67d0b16ff5 "" + "user-code/push/arduino/led-push-button/led-push-button.ino" 1620022023 500 74749a5bf90b0b8730fac1c5c2d2098e "" + "user-code/push/arduino/push-button-status/push-button-status.ino" 1620022023 399 8bc698528184374bd12aa2bd7447ae54 "" "user-code/push/figures/led-push-button.PNG" 1615963614 29100 9fb97725008a4f858830924290bafd86 "" "user-code/push/figures/push-button-status.PNG" 1615963614 27403 da6c41bb605a3801512422bfefcaf4ea "" "user-code/push/figures/pushbutton-conn.png" 1615963614 25321 c2e109dc82f76507b9a0b5f6e09be7db "" "user-code/push/figures/sci-ard-meter.png" 1619834247 14461 903bc95446fd86d03d6cd50e9801d91d "" "user-code/push/figures/switch-led.png" 1617880501 240149 ad9fa2cc65d176482fbdf38c633d826f "" "user-code/push/figures/switch.png" 1617880485 220988 2689323a6f7a00d63e81ef7abb52961a "" - "user-code/push/julia/led-push-button.jl" 1619828156 335 a43f32d317c8ee378099da49b62daa26 "" - "user-code/push/julia/push-button-status.jl" 1619828150 208 cd2b6d1a00e17a42cd641bd4d61ca5c2 "" - "user-code/push/push.tex" 1619907858 29750 33cae326f02bfbe47ab5c02aeb2dd1f3 "" - "user-code/push/python/led-push-button.py" 1619825134 855 9f30a1deee363be620eadb9f6985f89a "" - "user-code/push/python/push-button-status.py" 1619824991 725 2628feae697431335d3cf663e9e7afeb "" - "user-code/push/scilab/led-push-button.sce" 1619834437 366 0deddbfd697be4ff28d1edb657b4abf1 "" - "user-code/push/scilab/push-button-status.sce" 1619824238 374 d69c0cfbc0e245b2ddd91134c05c6656 "" + "user-code/push/julia/led-push-button.jl" 1620022023 362 d6ece80fbd90baec0c77d842796ce55f "" + "user-code/push/julia/push-button-status.jl" 1620022023 220 ee74db42ff4cafa9fdfa53bf629610f7 "" + "user-code/push/push.tex" 1620023366 29746 221700ea48ba6bbc552db666e8611ba5 "" + "user-code/push/python/led-push-button.py" 1620022023 836 6bb4c87a116a1d710309f95740f46c1c "" + "user-code/push/python/push-button-status.py" 1620022023 726 f8a32147aae8c969c2bd3a7634370342 "" + "user-code/push/scilab/led-push-button.sce" 1620022023 395 ffd3626904bd116d49ebbbd9ba896f6c "" + "user-code/push/scilab/push-button-status.sce" 1620022023 374 60eb3a3f4806ea383dadee5441f2be98 "" "user-code/servo/OpenModelica/servo-init.mo" 1615963614 863 bb87abe9ddfb0a20ffa5730f616de29f "" "user-code/servo/OpenModelica/servo-loop.mo" 1615963614 1082 65457a77509f0c8801012ceebce800b1 "" "user-code/servo/OpenModelica/servo-reverse.mo" 1615963614 1054 ba02e3eef4c1437cfb637edae7dd0f4e "" @@ -389,18 +389,18 @@ "user-code/thermistor/scilab/therm-read.sce" 1619998644 399 3d4d94a3003c16014a51200a9b472b66 "" "user-code/thermistor/thermistor.tex" 1620004224 41305 bda4a0b00891126e6a0ed71437360cac "" (generated) - "floss-arduino.ard" "floss-arduino.idx" - "floss-arduino.thm" - "floss-arduino.pdf" + "floss-arduino.cod" + "floss-arduino.log" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.pdf" - "floss-arduino.lof" - "floss-arduino.OpenModelicad" "floss-arduino.lot" - "floss-arduino.aux" + "floss-arduino.pdf" + "floss-arduino.pyd" "floss-arduino.toc" "/home/fossee/Desktop/floss-scilab-arduino/floss-arduino.log" - "floss-arduino.pyd" - "floss-arduino.log" + "floss-arduino.lof" + "floss-arduino.ard" + "floss-arduino.OpenModelicad" + "floss-arduino.aux" + "floss-arduino.thm" "floss-arduino.juliad" - "floss-arduino.cod" diff --git a/floss-arduino.log b/floss-arduino.log index ce11181..67526c0 100644 --- a/floss-arduino.log +++ b/floss-arduino.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 3 MAY 2021 06:48 +This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=pdflatex 2020.11.5) 3 MAY 2021 12:00 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -1520,7 +1520,7 @@ mo) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue- delay.mo [91]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-blue- -red.mo) [92] +red.mo [92]) (/home/fossee/Desktop/floss-scilab-arduino/user-code/led/OpenModelica/led-green -blink.mo)) (./user-code/push/push.tex [93] [94 @@ -2634,7 +2634,7 @@ sr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb></usr/share/texmf/fonts /type1/public/cm-super/sfrm1095.pfb></usr/share/texmf/fonts/type1/public/cm-sup er/sfsi1095.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfss1095.pfb></us r/share/texmf/fonts/type1/public/cm-super/sfti1095.pfb> -Output written on floss-arduino.pdf (264 pages, 21056458 bytes). +Output written on floss-arduino.pdf (264 pages, 21056445 bytes). PDF statistics: 1168 PDF objects out of 1200 (max. 8388607) 681 compressed objects within 7 object streams diff --git a/floss-arduino.pdf b/floss-arduino.pdf Binary files differindex 240beaf..11c56aa 100644 --- a/floss-arduino.pdf +++ b/floss-arduino.pdf diff --git a/indent.log b/indent.log deleted file mode 100644 index 585db88..0000000 --- a/indent.log +++ /dev/null @@ -1,25 +0,0 @@ -INFO: latexindent version 3.7.1, 2019-09-07, a script to indent .tex files - latexindent lives here: /usr/share/texlive/texmf-dist/scripts/latexindent/ - Mon May 3 06:36:47 2021 - Filename: /home/fossee/Desktop/floss-scilab-arduino/user-code/thermistor/__latexindent_temp.tex -INFO: Processing switches: - -y|--yaml: YAML settings specified via command line - -c|--cruft: cruft directory -INFO: Directory for backup files and /home/fossee/Desktop/floss-scilab-arduino/indent.log: /home/fossee/Desktop/floss-scilab-arduino/ -INFO: YAML settings read: defaultSettings.yaml - Reading defaultSettings.yaml from /usr/share/texlive/texmf-dist/scripts/latexindent/defaultSettings.yaml -INFO: YAML settings read: indentconfig.yaml or .indentconfig.yaml - Home directory is /home/fossee (didn't find either indentconfig.yaml or .indentconfig.yaml) - To specify user settings you would put indentconfig.yaml here: /home/fossee/indentconfig.yaml - Alternatively, you can use the hidden file .indentconfig.yaml as: /home/fossee/.indentconfig.yaml -INFO: YAML settings read: -y switch - Updating masterSettings with defaultIndent: -INFO: Phase 1: searching for objects -INFO: Phase 2: finding surrounding indentation -INFO: Phase 3: indenting objects -INFO: Phase 4: final indentation check -INFO: Output routine: - Not outputting to file; see -w and -o switches for more options. - -------------- -INFO: Please direct all communication/issues to: - https://github.com/cmhughes/latexindent.pl diff --git a/user-code/led/led.tex b/user-code/led/led.tex index 2885275..76e6b62 100644 --- a/user-code/led/led.tex +++ b/user-code/led/led.tex @@ -875,7 +875,7 @@ The reader should go through the instructions given in \secref{sec:light-ard}, we choose {\tt PIN NUMBER} as 9. We can put
any positive integer in the place of {\tt VALUE}. We arrive at the
following command:
- \lstinputlisting[firstline=10,lastline=10]{\LocLEDOpenModelicacode/led-blue.mo}
+ \lstinputlisting[firstline=15,lastline=15]{\LocLEDOpenModelicacode/led-blue.mo}
Subsequently, we close the serial port and then define the simulation parameters.
\item \OpenModelicaref{OpenModelica:led-blue-delay} does the same thing as what
\ardref{ard:led-blue-delay} does. It does two more things than what
diff --git a/user-code/push/OpenModelica/led-push-button.mo b/user-code/push/OpenModelica/led-push-button.mo index 7764c88..63ba3f9 100644 --- a/user-code/push/OpenModelica/led-push-button.mo +++ b/user-code/push/OpenModelica/led-push-button.mo @@ -14,7 +14,7 @@ algorithm if ok <> 0 then
strm.print("Unable to open serial port, please check");
else
- val := sComm.cmd_digital_in(1, 12) "";
+ val := sComm.cmd_digital_in(1, 12);
if val == 0 then
strm.print("0");
digital_out := sComm.cmd_digital_out(1, 9, 0) "This will turn OFF the blue LED";
diff --git a/user-code/push/push.tex b/user-code/push/push.tex index 96c6188..9da92e6 100644 --- a/user-code/push/push.tex +++ b/user-code/push/push.tex @@ -141,7 +141,7 @@ instructions given in \secref{sec:ard-start} before getting started. acquiring the values, we print them using,
\lstinputlisting[firstline=8,lastline=8]
{\LocPushardcode/push-button-status/push-button-status.ino} We
- repeat this read and print process 1000 times by putting the
+ repeat this read and print process 50 times by putting the
commands in a {\tt for} loop. While running this experiment, the readers must press
and release the pushbutton and observe the values being printed on the
{\tt Serial Monitor} of Arduino IDE.
@@ -156,7 +156,7 @@ instructions given in \secref{sec:ard-start} before getting started. the pusbhutton value from digital pin 12. If the value is ``1'',
we turn on the LED at pin 9 else we turn it off. The
condition check is performed using {\tt if else} statements. We run
- these commands for 1000 iterations. While running this experiment, the readers
+ these commands for 50 iterations. While running this experiment, the readers
must press and release the pushbutton. Accordingly, they can observe whether
the LED glows when the pushbutton is pressed.
% \redcolor{Serial monitor}.
@@ -227,7 +227,7 @@ digital pin 12 using the following command: for this experiment is given in \sciref{sci:push-200}. After reading
the pushbutton status, we turn the LED on if the pushbutton is
pressed, otherwise we turn it off. The following lines,
- \lstinputlisting[firstline=5,lastline=9]
+ \lstinputlisting[firstline=6,lastline=9]
{\LocPushscicode/led-push-button.sce} perform the condition check
and corresponding LED state control operation. While running this experiment, the readers
must press and release the pushbutton. Accordingly, they can observe whether
@@ -463,7 +463,7 @@ printed) by the following lines: {\LocPushjuliacode/push-button-status.jl} where {\tt val} contains the pushbutton value acquired by the previous command.
When the pushbutton is not pressed, {\tt val} will be ``0''. On the other hand,
when the pushbutton is pressed, {\tt val} will be ``1''. To encourage the user to have a good hands-on, we run these commands in a
-{\tt for} loop for 200 iterations. The readers are encouraged to change the number
+{\tt for} loop for 20 iterations. The readers are encouraged to change the number
of iterations as per their requirements. While running this experiment, the readers
must press and release the pushbutton and observe the values being printed
on the Command Prompt (on Windows) or Terminal (on Linux), as the case
@@ -476,7 +476,7 @@ maybe. for this experiment is given in \juliaref{julia:push-200}. After reading
the pushbutton status, we turn the LED on if the pushbutton is
pressed, otherwise we turn it off. The following lines,
- \lstinputlisting[firstline=7,lastline=12]
+ \lstinputlisting[firstline=10,lastline=13]
{\LocPushjuliacode/led-push-button.jl} perform the condition check
and corresponding LED state control operation. While running this experiment, the readers must press and release the push-
button. Accordingly, they can observe whether the LED glows when the push-
@@ -536,7 +536,7 @@ on the output window of OMEdit, as shown in \figref{om-sim-success}. for this experiment is given in \OpenModelicaref{OpenModelica:push-200}.
After reading the pushbutton status, we turn the LED on if the pushbutton is
pressed, otherwise we turn it off. The following lines,
- \lstinputlisting[firstline=17,lastline=23]
+ \lstinputlisting[firstline=18,lastline=26]
{\LocPushOpenModelicacode/led-push-button.mo} perform the condition check
and corresponding LED state control operation. While running this experiment, the readers must press and release the push-
button. Accordingly, they can observe whether the LED glows when the push-
|