Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help wanted: Starting with the Arduino Sketch #123

Closed
GrOS7d8 opened this issue Jan 13, 2021 · 8 comments
Closed

Help wanted: Starting with the Arduino Sketch #123

GrOS7d8 opened this issue Jan 13, 2021 · 8 comments

Comments

@GrOS7d8
Copy link

GrOS7d8 commented Jan 13, 2021

Hello, I have decided to go for setting up Moppy 2.0 but already when it comes to uploading the sketch, I’m running into an issue. The sketch is left completely blank. Can someone help me with what I should do from here? The comments provided in the sketch aren’t being much help regarding what I should do. I’m using an Arduino Mega 2560 as my Microcontroller.
2ED54016-B9F3-4AEE-8CAF-FFF4325115B0

@GrOS7d8 GrOS7d8 changed the title Help wanted: Blank Sketch to start with and Error Compiling for Arduino Mega 2560 Help wanted: Starting with the Arduino Sketch Jan 13, 2021
@GrOS7d8
Copy link
Author

GrOS7d8 commented Jan 19, 2021

Here is the entirety of the Error messages:

Arduino: 1.8.12 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

sketch\EasyDrivers.cpp: In function 'instruments::EasyDrivers::resetAll()':

sketch\EasyDrivers.cpp:299:27: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]

 currentState[stepPin] = LOW;

sketch\EasyDrivers.cpp:297:29: note: within this loop

for (byte d=FIRST_DRIVER;d<=LAST_DRIVER;d++) {

                        ~^~~~~~~~~~~~~

sketch\src\MoppyInstruments\EasyDrivers.cpp: In function 'instruments::EasyDrivers::resetAll()':

sketch\src\MoppyInstruments\EasyDrivers.cpp:299:27: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations]

 currentState[stepPin] = LOW;

sketch\src\MoppyInstruments\EasyDrivers.cpp:297:29: note: within this loop

for (byte d=FIRST_DRIVER;d<=LAST_DRIVER;d++) {

                        ~^~~~~~~~~~~~~

sketch\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `instrument'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

sketch\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `network'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `setup'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `loop'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::originalPeriod'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::currentPeriod'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::dev_noteOff(unsigned char, unsigned char*)'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::dev_bendPitch(unsigned char, unsigned char*)'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::startupSound(unsigned char)'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::togglePin(unsigned char, unsigned char, unsigned char)'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::currentState'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::currentTick'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::tick()'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::blinkLED()'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::haltAllDrivers()'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::sys_sequenceStop()'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::reset(unsigned char)'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::resetAll()'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::setup()'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::stepResolution'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::sys_reset()'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\EasyDrivers.cpp.o (symbol from plugin): In function `instruments::EasyDrivers::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::EasyDrivers::dev_reset(unsigned char)'

sketch\EasyDrivers.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::originalPeriod'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::currentPeriod'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::dev_noteOff(unsigned char, unsigned char*)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::dev_bendPitch(unsigned char, unsigned char*)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::startupSound(unsigned char)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::setMovement(unsigned char, bool)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::MIN_POSITION'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::MAX_POSITION'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::deviceMessage(unsigned char, unsigned char, unsigned char*)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::togglePin(unsigned char, unsigned char, unsigned char)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::currentPosition'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::currentState'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::tick()'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::currentTick'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::blinkLED()'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::haltAllDrives()'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::sys_sequenceStop()'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::reset(unsigned char)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::resetAll()'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::setup()'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::sys_reset()'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\FloppyDrives.cpp.o (symbol from plugin): In function `instruments::FloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::FloppyDrives::dev_reset(unsigned char)'

sketch\FloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::originalPeriod'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::currentPeriod'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::dev_noteOff(unsigned char, unsigned char*)'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::dev_bendPitch(unsigned char, unsigned char*)'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::startupSound(unsigned char)'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::step(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char)'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::currentPosition'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::MAX_POSITION'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::currentDir'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::currentStep'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::tick()'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::currentTick'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::blinkLED()'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::haltAllDrives()'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::FIRST_BRIDGE'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::LAST_BRIDGE'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::sys_sequenceStop()'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::reset(unsigned char)'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::resetAll()'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::setup()'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::sys_reset()'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\L298N.cpp.o (symbol from plugin): In function `instruments::L298N::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::L298N::dev_reset(unsigned char)'

sketch\L298N.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\MoppyTimer.cpp.o (symbol from plugin): In function `MoppyTimer::initialize(unsigned long, void (*)())':

(.text+0x0): multiple definition of `MoppyTimer::initialize(unsigned long, void (*)())'

sketch\MoppyTimer.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::blinkLED()'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::shiftAllData()'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::shiftData'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::outputOn(unsigned char)'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::dev_noteOn(unsigned char, unsigned char*)'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::activeTicksLeft'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::shouldShift'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::outputOff(unsigned char)'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::tick()'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::zeroOutputs()'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::setup()'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::sys_reset()'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::sys_sequenceStop()'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftRegister.cpp.o (symbol from plugin): In function `instruments::blinkLED()':

(.text+0x0): multiple definition of `instruments::ShiftRegister::dev_reset(unsigned char)'

sketch\ShiftRegister.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::originalPeriod'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::currentPeriod'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::dev_noteOff(unsigned char, unsigned char*)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::dev_bendPitch(unsigned char, unsigned char*)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::startupSound(unsigned char)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::setMovement(unsigned char, bool)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::MIN_POSITION'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::MAX_POSITION'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::deviceMessage(unsigned char, unsigned char, unsigned char*)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::togglePin(unsigned char)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::currentPosition'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::directionBits'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::stepBits'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::shiftBits()'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::tick()'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::currentTick'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::haltAllDrives()'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::sys_sequenceStop()'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::reset(unsigned char)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::resetAll()'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::setup()'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::sys_reset()'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyInstruments\ShiftedFloppyDrives.cpp.o (symbol from plugin): In function `instruments::ShiftedFloppyDrives::dev_noteOn(unsigned char, unsigned char*)':

(.text+0x0): multiple definition of `instruments::ShiftedFloppyDrives::dev_reset(unsigned char)'

sketch\ShiftedFloppyDrives.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppyMidi.cpp.o (symbol from plugin): In function `MoppyMidi::MoppyMidi(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppyMidi::MoppyMidi(MoppyMessageConsumer*)'

sketch\MoppyMidi.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppyMidi.cpp.o (symbol from plugin): In function `MoppyMidi::MoppyMidi(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppyMidi::MoppyMidi(MoppyMessageConsumer*)'

sketch\MoppyMidi.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppyMidi.cpp.o (symbol from plugin): In function `MoppyMidi::MoppyMidi(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppyMidi::begin()'

sketch\MoppyMidi.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppyMidi.cpp.o (symbol from plugin): In function `MoppyMidi::MoppyMidi(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppyMidi::readMessages()'

sketch\MoppyMidi.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppyMidi.cpp.o (symbol from plugin): In function `MoppyMidi::MoppyMidi(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `actPlayingNote'

sketch\MoppyMidi.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppySerial.cpp.o (symbol from plugin): In function `MoppySerial::MoppySerial(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppySerial::MoppySerial(MoppyMessageConsumer*)'

sketch\MoppySerial.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppySerial.cpp.o (symbol from plugin): In function `MoppySerial::MoppySerial(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppySerial::MoppySerial(MoppyMessageConsumer*)'

sketch\MoppySerial.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppySerial.cpp.o (symbol from plugin): In function `MoppySerial::MoppySerial(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppySerial::begin()'

sketch\MoppySerial.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppySerial.cpp.o (symbol from plugin): In function `MoppySerial::MoppySerial(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppySerial::sendPong()'

sketch\MoppySerial.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\MoppyNetworks\MoppySerial.cpp.o (symbol from plugin): In function `MoppySerial::MoppySerial(MoppyMessageConsumer*)':

(.text+0x0): multiple definition of `MoppySerial::readMessages()'

sketch\MoppySerial.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `instrument'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `network'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `setup'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

sketch\src\main.cpp.o (symbol from plugin): In function `instrument':

(.text+0x0): multiple definition of `loop'

sketch\Moppy2-Arduino.ino.cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@Sammy1Am
Copy link
Owner

Sammy1Am commented Jan 19, 2021 via email

@GrOS7d8
Copy link
Author

GrOS7d8 commented Jan 19, 2021

As of this time the only changes made to the code were the directory problems. All other code has been left unchanged.

@Sammy1Am
Copy link
Owner

Sammy1Am commented Jan 20, 2021

Ah, so, I have a little more context now from your other messages:

There's nothing additional to be done after opening the "empty" sketch. After downloading from GitHub, just open the .ino and hit "upload". You may need to install the TimerOne library in the Arduino IDE if you don't have it already.

Even though the .ino is empty, the Arduino IDE will find the other code files on its own, compile them, and upload them. The errors you're getting about things being declared more than once is likely because it's finding the original code and the code you've copied into the sketch.

Edit: This is, by the way, weird and confusing and I wish the Arduino IDE didn't do things this way. But it's sort of a compromise to keep the code reasonably organized while also allowing people to use the Arduino IDE instead of something heavier like Eclipse.

@GrOS7d8
Copy link
Author

GrOS7d8 commented Jan 20, 2021

I see. I’ll try uploading the “empty” sketch and I’ll update you on this.

@GrOS7d8
Copy link
Author

GrOS7d8 commented Jan 20, 2021

Good news! The “empty” sketch uploaded successfully!

@GrOS7d8
Copy link
Author

GrOS7d8 commented Jan 20, 2021

GREAT NEWS! I just tested everything out and opened the bat file and I’m thrilled to report everything is working perfectly! Thank you for your help Sammy!

@Sammy1Am
Copy link
Owner

Yay! 🎉 Glad you got it working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants