Hello,
I am new to MLP. I figured I would start with Blink2 to get me going. But as always things, in the computer world never go for me as the directions say they will. When I load the Blink2 example and try to load it to my board it hangs up right off the bat in the compile step.
I have tried to attach the error page in different formats and every time it says it has the wrong extention. So I cut and pasted the error. Please if someone can help me I would appreiciate it.
Thanks,
John
Blink2: In function 'void setup()':
Blink2:54: error: no matching function for call to 'AddVariable(const __FlashStringHelper*, int&)'
SerialCommandHandler.AddVariable(F("OnTime"), OnTime);
^
In file included from C:\Users\John\Documents\Arduino\libraries\MegunoLink/CommandHandler.h:6:0,
from C:\Users\John\AppData\Local\Temp\arduino_modified_sketch_518277\Blink2.ino:36:
C:\Users\John\Documents\Arduino\libraries\MegunoLink/utility/CommandDispatcherBase.h:44:10: note: candidate: bool MLP::CommandDispatcherBase::AddVariable(const __FlashStringHelper*, uint8_t&) <near match>
bool AddVariable(const __FlashStringHelper *pName, uint8_t &rVariable);
^
C:\Users\John\Documents\Arduino\libraries\MegunoLink/utility/CommandDispatcherBase.h:44:10: note: conversion of argument 2 would be ill-formed:
Blink2:54: error: invalid initialization of non-const reference of type 'uint8_t& {aka unsigned char&}' from an rvalue of type 'uint8_t {aka unsigned char}'
Need help with Teensy 3.6, Blink2 compile error
Hi Phil,
No mods to the program.
I think I have the latest libraries, but how would I verify that?
I am using a Teensy 3.6, I can load other programs and they work, but the examples from Megunolink do not get past this error.
Blink2: In function 'void setup()':
Blink2:60: error: no matching function for call to 'AddVariable(const __FlashStringHelper*, int&)'
SerialCommandHandler.AddVariable(F("OnTime"), OnTime);
Thanks,
John
No mods to the program.
I think I have the latest libraries, but how would I verify that?
I am using a Teensy 3.6, I can load other programs and they work, but the examples from Megunolink do not get past this error.
Blink2: In function 'void setup()':
Blink2:60: error: no matching function for call to 'AddVariable(const __FlashStringHelper*, int&)'
SerialCommandHandler.AddVariable(F("OnTime"), OnTime);
Thanks,
John
Phil,
I tried using my arduino DUE and it works fine but the Teensy 3.6 doesn't.
If I add // to the two lines SerialCommandHandler.AddVariable(F("OnTime"), OnTime);
and SerialCommandHandler.AddVariable(F("OffTime"), OffTime); lines it compiles and uploads, of course it doesn't run the program correctly though.
The teensy works with other programs just not the one with this AddVariable command.
Any ideas?
I tried using my arduino DUE and it works fine but the Teensy 3.6 doesn't.
If I add // to the two lines SerialCommandHandler.AddVariable(F("OnTime"), OnTime);
and SerialCommandHandler.AddVariable(F("OffTime"), OffTime); lines it compiles and uploads, of course it doesn't run the program correctly though.
The teensy works with other programs just not the one with this AddVariable command.
Any ideas?
Hi, im not sure why its not working on the teensy but will investigate further. In the short term i suggest you work with the commandhandler using the addcommand verison which seems to work on the teensy (at least here it does).
The best example to base it on is the SetParameters.ino example. It lets you configure a variable using a slightly different approach which seems to build.
Will update further as we try to fix it.
Cheers
Phil
The best example to base it on is the SetParameters.ino example. It lets you configure a variable using a slightly different approach which seems to build.
Will update further as we try to fix it.
Cheers
Phil
-
- Posts: 1
- Joined: Sat May 05, 2018 6:44 am
- Contact:
How to resolve it.. I tried but the error comes up again and again. Please provide me a step wise process.
Get the Best Assignment Help in uk.