Message |
|
|
|
|
In many of the examples ? Where ? I could not find any example.... Can you send me a link to any examples ?
|
|
|
Is there any example for dynamic creation of a Submenu or a datalist ?
I want to show a list of values (analog, boolean) in a Sumbenu. But the list can change at runtime, so i have to create this Menuitems at Runtime.
I believe that a datalist is the best way for my problem, but how to set Name, Value and Type of a row ?
|
|
|
The problem is solved, i removed the tcMenuManager, the arduino IDE and also all librariers. The i installed everthing new from the beginning. I dont know what was wrong
|
|
|
Hey,
is it possible to create a new textformat by myself ? I need a time format, but without seconds. Only hours and minutes on the display.
|
|
|
In my menu, a have an anlog value.
If i enter 5, the getCurrentValue() give me 55
If i enter 6, the getCurrentValue gives me 66
No Offset, no divisor is entered
I think there are some problems with the last update, i will try to get back to the old versions.... But where can i get an old version of the tcMenuDesigner ?
|
|
|
ok, i rermoved everything and have installed everything new
now it works
thanks for trying to help
|
|
|
ioAbstraction is version 1.6.7,
taskManager is 1.1.0
IoAbstraction is also 1.6.7
TcMenuDesigner is 1.7.12
Target is Arduino Nano
taskManager.cpp is empty
content of taskManager.h is
#ifndef COMPAT_TASKMGR_H
#define COMPAT_TASKMGR_H
#include <TaskManagerIO.h>
#endif //COMPAT_TASKMGR_H
|
|
|
Hey there,
since the newest update, i have some problems / compiler errors. What can i do ?
F:\Users\Karlheinz\Dokumente\Arduino\libraries\TaskManagerIO\src/TaskManagerIO.h:86:7: note: array types have different bounds
class TaskManager {
^
F:\Users\Karlheinz\Dokumente\Arduino\libraries\TaskManagerIO\src/TaskBlock.h:27:7: note: array types have different bounds
class TaskBlock {
^
F:\Users\Karlheinz\Dokumente\Arduino\libraries\TaskManagerIO\src/TaskManagerIO.h:86:7: note: type 'struct TaskManager' itself violates the C++ One Definition Rule
class TaskManager {
^
F:\Users\Karlheinz\Dokumente\Arduino\libraries\TaskManagerIO\src/TaskTypes.h:58:7: note: type 'struct BaseEvent' itself violates the C++ One Definition Rule
class BaseEvent : public Executable {
^
F:\Users\Karlheinz\Dokumente\Arduino\libraries\TaskManagerIO\src\TaskTypes.h:58:7: note: the incompatible type is defined here
class BaseEvent : public Executable {
^
|
|
|
|
|
|
Hey there, i have a question: I used ther library a lot of times without any problems. No, i am building up a new board with a 20x4 lcd. first, i connected the lcd to the Arduino Uno, but i didn't connect any keys for input. Later, i wanna use normal keys with pullup_input, i did this before without any problems.
But after wiring the lcd, i would make a test for the wiring. I compiled my menu and uploaded it to the Arduino. The display doesn't work, there were no lettes on the display, only symbols.....
Then, i selected "No input required", and everything was working fine. Why that ?????
When i will connect the keys, and no key is pressed, it will be the same hardware!!!!
What happend here ?
|
|
|
Hi,
i have a regular MenuItem (Integer oder Decimal value), and i am using a decimal value. My Divisor ist "10", and my current value is "5". So it should diplsay "0.5".
But in the display, the line shows "0.5null".
Whats that ? What is the meaning of "null" ?
I'm using the DF Robotshield, so its a 16x2 display....
|
|
|
Hi, i am using the tcMenu library on a Df_Robot-Shield, everything is working fine.
Now i wanna use another keypad, a maxtrix keypad with 5 Buttons: Up, Down, Left, Right, Select. Ok, i know that i don't need the Left and the right button.
I tested the keypad with an example of the TaskManagerIO-Library, everything is ok.
How can i use the keypad instead of the buttons of the Df_Robot-Shield ?
How can i "tell" the MenuManager which button is for uo, which for dwon and which for select ?
#include <KeyboardManager.h>
#include <tcMenuKeyboard.h>
const char pgmLayout[] PROGMEM = "LRUDS";
KeyboardLayout keyLayout(1, 5, pgmLayout);
MatrixKeyboardManager keyboard;
MenuEditingKeyListener menuKeyListener;
extern AnalogMenuItem menuCurrent;
extern AnalogMenuItem menuVoltage;
extern AnalogMenuItem menuADCount;
extern AnalogMenuItem menuIst;
extern AnalogMenuItem menuSmooth;
extern EnumMenuItem menuCompMode;
extern AnalogMenuItem menuMaxwert;
extern AnalogMenuItem menuBuerde;
extern AnalogMenuItem menuMessage;
extern AnalogMenuItem menuDelay;
extern AnalogMenuItem menuCoOff;
extern AnalogMenuItem menuCoOn;
extern BooleanMenuItem menuRunStatus;
extern AnalogMenuItem menuDruck;
void setup() {
Serial.begin (9600);
keyLayout.setRowPin(0, 27);
keyLayout.setColPin(0, 22);
keyLayout.setColPin(1, 23);
keyLayout.setColPin(2, 24);
keyLayout.setColPin(3, 25);
keyLayout.setColPin(4, 26);
// create the keyboard mapped to arduino pins and with the layout chosen above.
// it will callback our listener
keyboard.initialise(ioUsingArduino(), &keyLayout, &menuKeyListener);
// start repeating at 850 millis then repeat every 350ms
keyboard.setRepeatKeyMillis(850, 350);
Serial.println("Keyboard is initialised!");
setupMenu();
}
void loop() {
taskManager.runLoop();
}
|
|
|
ok, resolved.
Problem was the Baurate of the serial Interface.
Please remove this....
|
|
|
I have a Maxtrixkeypad with 1 row and 5 cols. The buttons are Left, Right, Up, Down and Select.
I tried the keypad library, everything works fine.
No i have tried to use it with the keyboardmanager, and i got a result like this "?????N????????9???a?X???????????????????5????????????N????????"
The IO-Pins are correct, Keypad.h is working fine....
Any idea whats wrong ?
#include <Wire.h>
#include <IoAbstraction.h>
#include<TaskManagerIO.h>
#include <KeyboardManager.h>
const char pgmLayout[] PROGMEM = "LRUDS";
KeyboardLayout keyLayout(1, 5, pgmLayout);
MatrixKeyboardManager keyboard;
IoAbstractionRef arduinoIo = ioUsingArduino();
class MyKeyboardListener : public KeyboardListener {
public:
void keyPressed(char key, bool held) override {
Serial.print("Key ");
Serial.print(key);
Serial.print(" is pressed, held = ");
Serial.println(held);
}
void keyReleased(char key) override {
Serial.print("Released ");
Serial.println(key);
}
} myListener;
void setup() {
while(!Serial);
Serial.begin(115200);
keyLayout.setRowPin(0, 27);
keyLayout.setColPin(0, 22);
keyLayout.setColPin(1, 23);
keyLayout.setColPin(2, 24);
keyLayout.setColPin(3, 25);
keyLayout.setColPin(4, 26);
// create the keyboard mapped to arduino pins and with the layout chosen above.
// it will callback our listener
keyboard.initialise(arduinoIo, &keyLayout, &myListener);
// start repeating at 850 millis then repeat every 350ms
keyboard.setRepeatKeyMillis(850, 350);
Serial.println("Keyboard is initialised!");
}
void loop() {
taskManager.runLoop();
}
|
|
|