Search results

  1. F

    Multiple definitions of 'loop'

    Yes, I worked out details for the priority director. Among other things I penciled simulations of 12-bit to 14-bit word lengths to achieve the least number of overall BITS for test programs! Unfortunately, we had to use unreliable transistors for political reasons. One of my debugging tools was...
  2. F

    Multiple definitions of 'loop'

    Yes, I'm sorry that the closed bracket issue was my mistake made in the heat of battle. The latest recommendation works as it should. My code, with similar structure, also compiles now. However my code getting the "multiple...loop" error caused this conversation. Maybe we'll never know what was...
  3. F

    Multiple definitions of 'loop'

    void setup() { // put your setup code here, to run once: } int velocity = 80; // Velocity int note=20; // Piano note void loop() { usbMIDI.sendNoteOn(note, velocity, 1); delay(1000); usbMIDI.sendNoteOff(note, velocity, 1); delay(1000); note++...
  4. F

    Multiple definitions of 'loop'

    Many thanks to the reviewers who have joined in. In response to jmarsh: Setup left in and declarations placed below it. The error changed to: C:\Users\john\AppData\Local\Temp\.arduinoIDE-unsaved202494-11624-zk2z2r.or5j\sketch_oct4a\sketch_oct4a.ino: In function 'void setup()'...
  5. F

    Multiple definitions of 'loop'

    I put the SETUP example in a prior post but here it is again: void setup(){ int velocity = 80; // Velocity int note=20; // Piano note } void loop() { usbMIDI.sendNoteOn(note, velocity, 1); delay(1000); usbMIDI.sendNoteOff(note, velocity, 1); delay(1000)...
  6. F

    Multiple definitions of 'loop'

    Thanks for the Code tag usage. Only the default file loaded (no tabs) and MIDI code typed in on top of default code. I removed 1.59.0 and reinstalled. Same result. There must be hidden variables somewhere in App_Data or the code folder. /* Transmit USB MIDI message. You must select MIDI from...
  7. F

    Multiple definitions of 'loop'

    Thanks for your attention and replies. I don't know how to use tag (</> for the code? Please advise. Here I'm using BOLD to distinguish comment from code. I didn't have a Setup in the code that was working before. Only a lot of initializing code and a lot of complex logic in the loop. I removed...
  8. F

    Multiple definitions of 'loop'

    Static code upon startup: void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } Complier msg: ening Teensy Loader... Memory Usage on Teensy 4.1: FLASH: code:8932, data:3016, headers:8528 free for files:8105988 RAM1...
  9. F

    Multiple definitions of 'loop'

    I developed some MIDI code for a hobby project and Aurduino worked, ie, compiled, loaded, Teensy ran, and Serial and MIDI monitors worked. Also Windows 10 accepted the MIDI data and played correctly. Recently I began to get the 'multiple...loop' error. even when I removed all the temporary...
Back
Top