Giter Site home page Giter Site logo

Comments (5)

slevirus avatar slevirus commented on July 18, 2024

With more investigation, the issue come from preproc part of process. the header of output file is generate before all include previously declared in sketch file.
With arduino java

#include <MozziGuts.h>
#include <Oscil.h>
#include <tables/cos2048_int8.h> // table for Oscils to play
#include <utils.h>
#include <fixedMath.h>
#include <EventDelay.h>
#include <Smooth.h>

#define CONTROL_RATE 256 // powers of 2 please

#include "Arduino.h"
void setup();
void setFreqs(Q8n8 midi_note);
void updateControl();
int updateAudio();
void loop();

And with ino env we have:

#include <Arduino.h>
void setup();
void setFreqs(Q8n8 midi_note);
void updateControl();
int updateAudio();
void loop();
#line 1 "src/_02b_FMsynth.ino"
[...]
#include <MozziGuts.h>
#include <Oscil.h>
#include <tables/cos2048_int8.h> // table for Oscils to play
#include <utils.h>
#include <fixedMath.h>
#include <EventDelay.h>
#include <Smooth.h>

#define CONTROL_RATE 256 // powers of 2 please

It's an important issue because we can't compile a lot of sketch correctly I think

from ino.

nkrkv avatar nkrkv commented on July 18, 2024

Thanks for the investigation. Yes, it's a known bug that will be fixed soon.

from ino.

Tudeskie avatar Tudeskie commented on July 18, 2024

I had a very similar problem and have a work around. Not sure why it does it.
if you go into ".build/atmega328/src/sketch.spp" move all the includes above the functions, then go back to the project root and rebuild everything works.

Not sure why INO mixes them while it is putting everything together.

from ino.

nkrkv avatar nkrkv commented on July 18, 2024

Fixed in 0.3.6

from ino.

kellertobias avatar kellertobias commented on July 18, 2024

Issue #55 isn't the same or this issue isn't fixed, too!

from ino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.