【发布时间】:2016-04-15 08:44:11
【问题描述】:
尝试构建一个 MIDI 功能区控制器,发现有人已经编写了所有必要的代码,但是当我尝试将其上传到 arduino 时,我收到以下错误:
sketch_apr13a:122: error: 'menuUsed' was not declared in this scope
MenuBackend menu = MenuBackend(menuUsed,menuChanged);
^
sketch_apr13a:122: error: 'menuChanged' was not declared in this scope
MenuBackend menu = MenuBackend(menuUsed,menuChanged);
^
exit status 1
'menuUsed' was not declared in this scope
由于我不太擅长整个编码,所以我有点难过,现在只能抓住稻草。
完整的代码可以在这里找到:http://www.coagula.org/content/sites/default/files/source/MIDI_Ribbon_Controller_2.pde
问题出在第 122 行,可能是第 609 和 506 行(因为那里有函数)
【问题讨论】: