Need help with Teensy 3.6, Blink2 compile error
Posted: Sun Feb 25, 2018 7:03 pm
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}'
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}'