Ich bekomme beim kompilieren des Sketches immer folgende Fehlermeldung.
Kann mir jemand helfen?
Code: Alles auswählen
C:\Users\Thinkpad\Desktop\HB-UNI-Sen-LEV-TOF\HB-UNI-Sen-LEV-TOF.ino:138:5: error: 'vl53l0x' does not name a type; did you mean 'sT_vl53l0x'?
vl53l0x<0x29, 500, RangeMode::LONG_RANGE> vl53l0x;
^~~~~~~
sT_vl53l0x
C:\Users\Thinkpad\Desktop\HB-UNI-Sen-LEV-TOF\HB-UNI-Sen-LEV-TOF.ino: In member function 'void MeasureChannel::measure()':
C:\Users\Thinkpad\Desktop\HB-UNI-Sen-LEV-TOF\HB-UNI-Sen-LEV-TOF.ino:155:15: error: 'vl53l0x' was not declared in this scope
if (vl53l0x.measure() == true) {
^~~~~~~
C:\Users\Thinkpad\Desktop\HB-UNI-Sen-LEV-TOF\HB-UNI-Sen-LEV-TOF.ino:155:15: note: suggested alternative: 'sT_vl53l0x'
if (vl53l0x.measure() == true) {
^~~~~~~
sT_vl53l0x
C:\Users\Thinkpad\Desktop\HB-UNI-Sen-LEV-TOF\HB-UNI-Sen-LEV-TOF.ino: In member function 'void MeasureChannel::setup(as::Device<Hal, UList0>*, uint8_t, uint16_t)':
C:\Users\Thinkpad\Desktop\HB-UNI-Sen-LEV-TOF\HB-UNI-Sen-LEV-TOF.ino:239:7: error: 'vl53l0x' was not declared in this scope
vl53l0x.init();
^~~~~~~
C:\Users\Thinkpad\Desktop\HB-UNI-Sen-LEV-TOF\HB-UNI-Sen-LEV-TOF.ino:239:7: note: suggested alternative: 'sT_vl53l0x'
vl53l0x.init();
^~~~~~~
sT_vl53l0x
exit status 1
Compilation error: 'vl53l0x' does not name a type; did you mean 'sT_vl53l0x'?