|
1 |
| -/* |
2 |
| - LET OP: Serial.begin(115200) IN DE scope LIB |
3 |
| -
|
4 |
| - The library <Streaming.h> has to be installed too, download here: |
5 |
| - http://arduiniana.org/libraries/streaming/ The library <avdweb.h> has to be |
6 |
| - installed too, download here: nog doen |
7 |
| -
|
8 |
| - Copyright (C) 2016 Albert van Dalen http://www.avdweb.nl |
9 |
| - This program is free software: you can redistribute it and/or modify it under |
10 |
| - the terms of the GNU General Public License as published by the Free Software |
11 |
| - Foundation, either version 3 of the License, or (at your option) any later |
12 |
| - version. This program is distributed in the hope that it will be useful, but |
13 |
| - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
14 |
| - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at |
15 |
| - http://www.gnu.org/licenses . |
16 |
| -
|
17 |
| - HISTORY: |
18 |
| - 1.0.0 1-1-2016 |
19 |
| - 1.0.1 14-1-2016 sample0_us |
20 |
| - 1.0.2 10-2-2017 1, 2, 3, 4 channels |
21 |
| - 1.0.3 10-2-2017 probeA sampleB probeABC probeABCD to avoid mistakes, all |
22 |
| - unsigned int -> int, added stop(), sizeof(int) SerialUSB -> Serial (incl. |
23 |
| - <Albert.h>), short 1.0.4 10-3-2017 for ISR measurements do show() in loop() |
24 |
| - 1.0.5 28-1-2018 renamed sample to probe, Scope to SWscope |
25 |
| -
|
26 |
| - start ___|____________________________________|________ |
27 |
| -
|
28 |
| - probe |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_ |
29 |
| -
|
30 |
| - trigger ____________|________________________________________ |
31 |
| - ___________________________ |
32 |
| - triggered ____________| |___________ |
33 |
| -
|
34 |
| - samples 0 0 1 2 3 . . . |
35 |
| - ________ |
36 |
| - show ________________________| |______________ |
37 |
| - ____________________ ___________ |
38 |
| - samplingOn ___| |_______________| |
39 |
| -
|
40 |
| - canShow ________________________|___________________________ |
41 |
| -
|
42 |
| -*/ |
| 1 | +/** |
| 2 | + * CodeDebugScope.cpp |
| 3 | + * |
| 4 | + * CodeDebugScope - Arduino Fast Debug Oscilloscope Library. |
| 5 | + * =========================================================== |
| 6 | + * |
| 7 | + * Sources |
| 8 | + * ------- |
| 9 | + * https://github.com/avandalen/avdweb_CodeDebugScope |
| 10 | + * |
| 11 | + * License |
| 12 | + * -------- |
| 13 | + * SPDX: GPL-3.0-or-later |
| 14 | + * |
| 15 | + * CodeDebugScope - Arduino Fast Debug Oscilloscope Library. |
| 16 | + * Copyright (C) 2016-2024 Albert van Dalen <http://www.avdweb.nl> |
| 17 | + * Copyright (C) 2024 Abhijit Bose (aka. Boseji) :contributor: |
| 18 | + * |
| 19 | + * This program is free software: you can redistribute it and/or modify |
| 20 | + * it under the terms of the GNU General Public License as published by |
| 21 | + * the Free Software Foundation, either version 3 of the License, or |
| 22 | + * (at your option) any later version. |
| 23 | + * |
| 24 | + * This program is distributed in the hope that it will be useful, |
| 25 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 26 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 27 | + * GNU General Public License for more details. |
| 28 | + * |
| 29 | + * You should have received a copy of the GNU General Public License |
| 30 | + * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 31 | + * |
| 32 | + * Notes |
| 33 | + * ------- |
| 34 | + * LET OP: Serial.begin(115200) IN DE scope LIB |
| 35 | + * |
| 36 | + * The library <Streaming.h> has to be installed too, download here: |
| 37 | + * <http://arduiniana.org/libraries/streaming/> |
| 38 | + * |
| 39 | + * |
| 40 | + * HISTORY: |
| 41 | + * 1.0.0 1-1-2016 |
| 42 | + * 1.0.1 14-1-2016 sample0_us |
| 43 | + * 1.0.2 10-2-2017 1, 2, 3, 4 channels |
| 44 | + * 1.0.3 10-2-2017 probeA sampleB probeABC probeABCD to avoid mistakes, all |
| 45 | + * unsigned int -> int, added stop(), sizeof(int) SerialUSB -> Serial (incl. |
| 46 | + * <Albert.h>), short 1.0.4 10-3-2017 for ISR measurements do show() in loop() |
| 47 | + * 1.0.5 28-1-2018 renamed sample to probe, Scope to SWscope |
| 48 | + * |
| 49 | + * start ___|____________________________________|________ |
| 50 | + * |
| 51 | + * probe |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_ |
| 52 | + * |
| 53 | + * trigger ____________|________________________________________ |
| 54 | + * ___________________________ |
| 55 | + * triggered ____________| |___________ |
| 56 | + * |
| 57 | + * samples 0 0 1 2 3 . . . |
| 58 | + * ________ |
| 59 | + * show ________________________| |______________ |
| 60 | + * ____________________ ___________ |
| 61 | + * samplingOn ___| |_______________| |
| 62 | + * |
| 63 | + * canShow ________________________|___________________________ |
| 64 | + * |
| 65 | + */ |
43 | 66 |
|
44 | 67 | #include "CodeDebugScope.h"
|
45 | 68 | #include <Streaming.h>
|
|
0 commit comments