Skip to content

Commit ed2ea66

Browse files
committed
Version 3.2
1 parent d10fc8a commit ed2ea66

28 files changed

+81
-64
lines changed

.cproject

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
33
<storageModule moduleId="org.eclipse.cdt.core.settings">
44
<cconfiguration id="de.innot.avreclipse.configuration.app.debug.961549999">
5-
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="de.innot.avreclipse.configuration.app.debug.961549999" moduleId="org.eclipse.cdt.core.settings" name="Nano">
5+
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="de.innot.avreclipse.configuration.app.debug.961549999" moduleId="org.eclipse.cdt.core.settings" name="_Nano">
66
<externalSettings/>
77
<extensions>
88
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
@@ -13,7 +13,7 @@
1313
</extensions>
1414
</storageModule>
1515
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
16-
<configuration artifactName="${ProjName}" buildArtefactType="de.innot.avreclipse.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=de.innot.avreclipse.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="" errorParsers="org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser" id="de.innot.avreclipse.configuration.app.debug.961549999" name="Nano" optionalBuildProperties="org.eclipse.cdt.docker.launcher.containerbuild.property.selectedvolumes=,org.eclipse.cdt.docker.launcher.containerbuild.property.volumes=" parent="de.innot.avreclipse.configuration.app.debug" postannouncebuildStep="Memory Map" postbuildStep="avr-nm -l -S -n ${BuildArtifactFileBaseName}.elf &gt;${BuildArtifactFileBaseName}.lst" preannouncebuildStep="" prebuildStep="">
16+
<configuration artifactName="${ProjName}" buildArtefactType="de.innot.avreclipse.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=de.innot.avreclipse.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="" errorParsers="org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser" id="de.innot.avreclipse.configuration.app.debug.961549999" name="_Nano" optionalBuildProperties="org.eclipse.cdt.docker.launcher.containerbuild.property.selectedvolumes=,org.eclipse.cdt.docker.launcher.containerbuild.property.volumes=" parent="de.innot.avreclipse.configuration.app.debug" postannouncebuildStep="Memory Map" postbuildStep="avr-nm -l -S -n ${BuildArtifactFileBaseName}.elf &gt;${BuildArtifactFileBaseName}.lst" preannouncebuildStep="" prebuildStep="">
1717
<folderInfo id="de.innot.avreclipse.configuration.app.debug.961549999." name="/" resourcePath="">
1818
<toolChain errorParsers="" id="de.innot.avreclipse.toolchain.winavr.app.debug.812956350" name="AVR-GCC Toolchain" superClass="de.innot.avreclipse.toolchain.winavr.app.debug">
1919
<option id="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.debug.166226200" name="Generate HEX file for Flash memory" superClass="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.debug" useByScannerDiscovery="false" value="true" valueType="boolean"/>
@@ -47,7 +47,7 @@
4747
</option>
4848
<option id="de.innot.avreclipse.cppcompiler.option.optimize.other.553758201" name="Other Optimization Flags" superClass="de.innot.avreclipse.cppcompiler.option.optimize.other" useByScannerDiscovery="false" value="-flto -fmerge-all-constants -fno-threadsafe-statics -mcall-prologues" valueType="string"/>
4949
<option id="de.innot.avreclipse.cppcompiler.option.otherflags.1785707671" name="Other flags" superClass="de.innot.avreclipse.cppcompiler.option.otherflags" useByScannerDiscovery="false" value="-fpermissive -std=gnu++11" valueType="string"/>
50-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="de.innot.avreclipse.cppcompiler.option.def.761581305" superClass="de.innot.avreclipse.cppcompiler.option.def" valueType="definedSymbols">
50+
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="de.innot.avreclipse.cppcompiler.option.def.761581305" name="Define Syms (-D)" superClass="de.innot.avreclipse.cppcompiler.option.def" valueType="definedSymbols">
5151
<listOptionValue builtIn="false" value="HC_05_BAUD_RATE=BAUD_115200"/>
5252
</option>
5353
<inputType id="de.innot.avreclipse.cppcompiler.input.1705245366" superClass="de.innot.avreclipse.cppcompiler.input"/>
@@ -85,7 +85,7 @@
8585
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
8686
</cconfiguration>
8787
<cconfiguration id="de.innot.avreclipse.configuration.app.debug.961549999.2003113689">
88-
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="de.innot.avreclipse.configuration.app.debug.961549999.2003113689" moduleId="org.eclipse.cdt.core.settings" name="Nano Debug">
88+
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="de.innot.avreclipse.configuration.app.debug.961549999.2003113689" moduleId="org.eclipse.cdt.core.settings" name="_Nano Debug">
8989
<externalSettings/>
9090
<extensions>
9191
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
@@ -96,7 +96,7 @@
9696
</extensions>
9797
</storageModule>
9898
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
99-
<configuration artifactName="${ProjName}" buildArtefactType="de.innot.avreclipse.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=de.innot.avreclipse.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="Nano without -flto" errorParsers="org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser" id="de.innot.avreclipse.configuration.app.debug.961549999.2003113689" name="Nano Debug" parent="de.innot.avreclipse.configuration.app.debug" postannouncebuildStep="" postbuildStep="" preannouncebuildStep="" prebuildStep="">
99+
<configuration artifactName="${ProjName}" buildArtefactType="de.innot.avreclipse.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=de.innot.avreclipse.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="Nano without -flto" errorParsers="org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser" id="de.innot.avreclipse.configuration.app.debug.961549999.2003113689" name="_Nano Debug" parent="de.innot.avreclipse.configuration.app.debug" postannouncebuildStep="" postbuildStep="" preannouncebuildStep="" prebuildStep="">
100100
<folderInfo id="de.innot.avreclipse.configuration.app.debug.961549999.2003113689." name="/" resourcePath="">
101101
<toolChain errorParsers="" id="de.innot.avreclipse.toolchain.winavr.app.debug.1478472079" name="AVR-GCC Toolchain" superClass="de.innot.avreclipse.toolchain.winavr.app.debug">
102102
<option id="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.debug.918197877" name="Generate HEX file for Flash memory" superClass="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.debug" useByScannerDiscovery="false" value="true" valueType="boolean"/>
@@ -130,7 +130,7 @@
130130
</option>
131131
<option id="de.innot.avreclipse.cppcompiler.option.optimize.other.769122275" name="Other Optimization Flags" superClass="de.innot.avreclipse.cppcompiler.option.optimize.other" useByScannerDiscovery="false" value="-fmerge-all-constants -fno-threadsafe-statics -mcall-prologues" valueType="string"/>
132132
<option id="de.innot.avreclipse.cppcompiler.option.otherflags.1777899965" name="Other flags" superClass="de.innot.avreclipse.cppcompiler.option.otherflags" useByScannerDiscovery="false" value="-fpermissive -std=gnu++11" valueType="string"/>
133-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="de.innot.avreclipse.cppcompiler.option.def.528895577" superClass="de.innot.avreclipse.cppcompiler.option.def" valueType="definedSymbols">
133+
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="de.innot.avreclipse.cppcompiler.option.def.528895577" name="Define Syms (-D)" superClass="de.innot.avreclipse.cppcompiler.option.def" valueType="definedSymbols">
134134
<listOptionValue builtIn="false" value="HC_05_BAUD_RATE=BAUD_115200"/>
135135
</option>
136136
<inputType id="de.innot.avreclipse.cppcompiler.input.106816857" superClass="de.innot.avreclipse.cppcompiler.input"/>
@@ -167,7 +167,7 @@
167167
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
168168
</cconfiguration>
169169
<cconfiguration id="de.innot.avreclipse.configuration.app.debug.961549999.627252364">
170-
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="de.innot.avreclipse.configuration.app.debug.961549999.627252364" moduleId="org.eclipse.cdt.core.settings" name="Leonardo">
170+
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="de.innot.avreclipse.configuration.app.debug.961549999.627252364" moduleId="org.eclipse.cdt.core.settings" name="_Leonardo">
171171
<externalSettings/>
172172
<extensions>
173173
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
@@ -178,7 +178,7 @@
178178
</extensions>
179179
</storageModule>
180180
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
181-
<configuration artifactName="${ProjName}" buildArtefactType="de.innot.avreclipse.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=de.innot.avreclipse.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="Test for compile on Leonardo" errorParsers="org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser" id="de.innot.avreclipse.configuration.app.debug.961549999.627252364" name="Leonardo" parent="de.innot.avreclipse.configuration.app.debug" postannouncebuildStep="" postbuildStep="" preannouncebuildStep="" prebuildStep="">
181+
<configuration artifactName="${ProjName}" buildArtefactType="de.innot.avreclipse.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=de.innot.avreclipse.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="Test for compile on Leonardo" errorParsers="org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser" id="de.innot.avreclipse.configuration.app.debug.961549999.627252364" name="_Leonardo" parent="de.innot.avreclipse.configuration.app.debug" postannouncebuildStep="" postbuildStep="" preannouncebuildStep="" prebuildStep="">
182182
<folderInfo id="de.innot.avreclipse.configuration.app.debug.961549999.627252364." name="/" resourcePath="">
183183
<toolChain errorParsers="" id="de.innot.avreclipse.toolchain.winavr.app.debug.1792789528" name="AVR-GCC Toolchain" superClass="de.innot.avreclipse.toolchain.winavr.app.debug">
184184
<option id="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.debug.691755733" name="Generate HEX file for Flash memory" superClass="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.debug" useByScannerDiscovery="false" value="true" valueType="boolean"/>
@@ -212,7 +212,7 @@
212212
</option>
213213
<option id="de.innot.avreclipse.cppcompiler.option.optimize.other.1860346594" name="Other Optimization Flags" superClass="de.innot.avreclipse.cppcompiler.option.optimize.other" useByScannerDiscovery="false" value="-flto -fmerge-all-constants -fno-threadsafe-statics -mcall-prologues" valueType="string"/>
214214
<option id="de.innot.avreclipse.cppcompiler.option.otherflags.559680386" name="Other flags" superClass="de.innot.avreclipse.cppcompiler.option.otherflags" useByScannerDiscovery="false" value="-std=gnu++11" valueType="string"/>
215-
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="de.innot.avreclipse.cppcompiler.option.def.914288541" superClass="de.innot.avreclipse.cppcompiler.option.def" valueType="definedSymbols">
215+
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="de.innot.avreclipse.cppcompiler.option.def.914288541" name="Define Syms (-D)" superClass="de.innot.avreclipse.cppcompiler.option.def" valueType="definedSymbols">
216216
<listOptionValue builtIn="false" value="HC_05_BAUD_RATE=BAUD_115200"/>
217217
</option>
218218
<inputType id="de.innot.avreclipse.cppcompiler.input.1016615601" superClass="de.innot.avreclipse.cppcompiler.input"/>

.project

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>SimpleTouchScreenDSO_BlueDisplay</name>
3+
<name>SimpleDSO_BlueDisplay</name>
44
<comment></comment>
55
<projects>
66
</projects>

README.md

+16-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This DSO needs only a standard Arduino-Uno or Arduino-Nano, a HC-05 Bluetooth mo
88

99
| Simple DSO with no attenuator on breadboard | DSO Chart screen |
1010
| :-: | :-: |
11-
| ![DSO with passive attenuator on breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/ArduinoDSO_Simple.jpg) | ![DSO chart screen](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/Chart.jpg) |
11+
| ![DSO with passive attenuator on breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/ArduinoDSO_simple.jpg) | ![DSO chart screen](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/Chart.jpg) |
1212

1313
## Features
1414
- 150 kSamples per second with good quality.
@@ -151,23 +151,30 @@ and waveform frequency is not stable and decreased, since not all TIMER1 OVERFLO
151151

152152
# SCREENSHOTS
153153
DSO start screen
154-
![DSO start screen](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/Welcome.jpg)
154+
![DSO start screen](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/Welcome.jpg)
155155

156156
| DSO Chart screen | DSO Chart screen with long info |
157157
| :-: | :-: |
158-
| ![DSO chart screen](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/Chart.jpg) | ![DSO chart screen with long info](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/Chart_Long_Info.jpg) |
158+
| ![DSO chart screen](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/Chart.jpg) | ![DSO chart screen with long info](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/Chart_Long_Info.jpg) |
159159
| DSO settings menu | DSO frequency / waveform generator menu |
160-
| ![DSO settings menu](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/Settings_Passive_Attenuator.jpg) | ![Frequency / waveform generator menu](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/Frequency.jpg) |
160+
| ![DSO settings menu](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/Settings_Passive_Attenuator.jpg) | ![Frequency / waveform generator menu](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/Frequency.jpg) |
161161
| ![DSO at work](https://github.com/ArminJo/android-blue-display/blob/gh-pages/pictures/DSO+Tablet.jpg) | |
162162

163163
# SCHEMATICS
164164
| SIMPLE 1 RANGE VERSION | 3 RANGE VERSION |
165165
| :-: | :-: |
166-
| ![Fritzing schematic](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_Simple_Schaltplan.png) | ![Fritzing schematic](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_BT_Schaltplan.png) |
167-
| ![Fritzing breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_Simple_Steckplatine.png) | ![Fritzing breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_BT_Steckplatine.png) |
168-
| ![DSO with passive attenuator on breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/ArduinoDSO_Simple.jpg) | ![DSO with passive attenuator on breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/media/ArduinoDSO.jpg) |
166+
| ![Fritzing schematic](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_simple_Schaltplan.png) | ![Fritzing schematic](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_BT_full_Schaltplan.png) |
167+
| ![Fritzing breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_simple_Steckplatine.png) | ![Fritzing breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/fritzing/Arduino_Nano_DSO_BT_full_Steckplatine.png) |
168+
| ![DSO with passive attenuator on breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/ArduinoDSO_simple.jpg) | ![DSO with passive attenuator on breadboard](https://github.com/ArminJo/Arduino-Simple-DSO/blob/master/pictures/ArduinoDSO.jpg) |
169169

170170
# Revision History
171-
### Version 1.0.0
172-
Initial Arduino library version
171+
### Version 3.2 - 11/2019
172+
- Clear display buffer at start and at switching inputs.
173+
- Multiline button caption.
174+
175+
### Version 3.1
176+
- stop response improved for fast mode.
177+
- value computation for ultra fast modes fixed.
178+
- millis() timer compensation formula fixed.
179+
- AC/DC button and info line handling improved.
173180

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pictures/DSO+Tablet.jpg

125 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/SimpleTouchScreenDSO.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ void setup() {
475475
DisplayControl.showInfoMode = INFO_MODE_SHORT_INFO;
476476

477477
//setACMode(!digitalReadFast(AC_DC_PIN));
478+
clearDataBuffer();
478479

479480
// first synchronize. Since a complete chart data can be missing, send minimum 320 byte
480481
for (int i = 0; i < 16; ++i) {
@@ -1597,7 +1598,7 @@ uint16_t getAttenuatorFactor(void) {
15971598
/*
15981599
* toggle between DC and AC mode
15991600
*/
1600-
void doAcDcMode(__attribute__((unused)) BDButton * aTheTouchedButton, __attribute__((unused)) int16_t aValue) {
1601+
void doAcDcMode(__attribute__((unused)) BDButton * aTheTouchedButton, __attribute__((unused)) int16_t aValue) {
16011602
setACMode(!MeasurementControl.ChannelIsACMode);
16021603
}
16031604

@@ -1631,7 +1632,7 @@ void doSetTriggerDelay(float aValue) {
16311632
/*
16321633
* toggle between 5 and 1.1 volt reference
16331634
*/
1634-
void doADCReference(__attribute__((unused)) BDButton * aTheTouchedButton, __attribute__((unused)) int16_t aValue) {
1635+
void doADCReference(__attribute__((unused)) BDButton * aTheTouchedButton, __attribute__((unused)) int16_t aValue) {
16351636
uint8_t tNewReference = MeasurementControl.ADCReference;
16361637
if (MeasurementControl.ADCReference == DEFAULT) {
16371638
tNewReference = INTERNAL;
@@ -1646,7 +1647,7 @@ void doADCReference(__attribute__((unused)) BDButton * aTheTouchedButton, __attr
16461647
}
16471648
}
16481649

1649-
void doStartStopDSO(__attribute__((unused)) BDButton * aTheTouchedButton, __attribute__((unused)) int16_t aValue) {
1650+
void doStartStopDSO(__attribute__((unused)) BDButton * aTheTouchedButton, __attribute__((unused)) int16_t aValue) {
16501651
if (MeasurementControl.isRunning) {
16511652
/*
16521653
* Stop here
@@ -1762,6 +1763,9 @@ void clearDisplayedChart(uint8_t * aDisplayBufferPtr) {
17621763
sizeof(DataBufferControl.DisplayBuffer));
17631764
}
17641765

1766+
void clearDataBuffer() {
1767+
memset(DataBufferControl.DataBuffer, 0, sizeof(DataBufferControl.DataBuffer));
1768+
}
17651769
/*
17661770
* Draws only one chart value - used for drawing while sampling
17671771
*/

0 commit comments

Comments
 (0)