Skip to content

invalid conversion from 'int' to 'Stream*' #81

Open
@renatoni

Description

@renatoni

Hallo Marcel,
ich finde Deine Projekte faszinierend! Ganz zu schweigen von Deinem Können am Keyboard. Gern würde ich das Eine oder Andere Projekt nachbauen, scheitere jedoch schon beim Kompilieren.

Ich wollte das Beispielprojekt mit ESP32 ml_synth_organ_example zum Laufen bringen, scheitere aber schon beim ersten kompilieren mit Fehlern.
Die ML_SynthTools habe ich in die ArduinoIDE installiert.
Das Kompilieren bricht mit folgenden Fehlern ab:

In file included from C:\Users\renato.nitsch\Documents\Arduino\ml_synth_organ_example\ml_synth_organ_example.ino:49:
C:\Users\renato.nitsch\Documents\Arduino\ml_synth_organ_example\ml_synth_organ_example.ino: In function 'void setup()':
C:\Users\renato.nitsch\Documents\Arduino\ml_synth_organ_example\config.h:159:21: error: invalid conversion from 'int' to 'Stream*' [-fpermissive]
159 | #define SAMPLE_RATE 44100
| ^~~~~
| |
| int
C:\Users\renato.nitsch\Documents\Arduino\ml_synth_organ_example\ml_synth_organ_example.ino:178:17: note: in expansion of macro 'SAMPLE_RATE'
178 | Organ_Setup(SAMPLE_RATE);
| ^~~~~~~~~~~
C:\Users\renato.nitsch\Documents\Arduino\ml_synth_organ_example\ml_synth_organ_example.ino:178:16: error: too few arguments to function 'void Organ_Setup(Stream*, float)'
178 | Organ_Setup(SAMPLE_RATE);
| ~~~~~~~~~~~^~~~~~~~~~~~~
In file included from C:\Users\renato.nitsch\Documents\Arduino\ml_synth_organ_example\ml_synth_organ_example.ino:60:
c:\Users\renato.nitsch\Documents\Arduino\libraries\ML_SynthTools-main\src/ml_organ.h:84:6: note: declared here
84 | void Organ_Setup(Stream *ser, float sample_rate);
| ^~~~~~~~~~~

exit status 1

Compilation error: invalid conversion from 'int' to 'Stream*' [-fpermissive]

Hoffentlich kann mir geholfen werden. Ich komme da einfach nicht weiter.

Herzliche Grüße

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions