fraser125 / m2tklib Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/m2tklib
Automatically exported from code.google.com/p/m2tklib
add read only option ('r') to fnfmt
Original issue reported on code.google.com by [email protected]
on 7 Jul 2011 at 10:30
/home/kraus/prg/arduino-0022/libraries/M2tklib/utility/m2key.c: In Funktion
»m2_GetKeyFromQueue«:
/home/kraus/prg/arduino-0022/libraries/M2tklib/utility/m2key.c:35: Fehler:
»for« loop initial declaration used outside C99 mode
Original issue reported on code.google.com by [email protected]
on 16 Jul 2011 at 10:47
points to a callback procedure instead of address of variable
uint32_t u32fn(uint8_t msg, uint32_t arg);
uint8_t u8fn(uint8_t msg, uint8_t arg);
msg = M2_NUM_MSG_GET /* returns value from procedure */
msg = M2_NUM_MSG_SET /* provides value in "arg" */
Original issue reported on code.google.com by [email protected]
on 26 Jan 2012 at 11:25
- create pics
- report on arduino forum
Original issue reported on code.google.com by [email protected]
on 1 Sep 2011 at 5:23
Add float support.
options:
cN
total digits, without "."
.N
digits after the "."
"c4.2"
--> 12.34
"c4.0"
--> 1234
size calculation: num("c") + ( num(".") == 0 ? 0 : num(".")+1 )
Original issue reported on code.google.com by [email protected]
on 12 Jul 2011 at 9:36
... should be documented
Original issue reported on code.google.com by [email protected]
on 12 Jul 2011 at 6:53
create a bigger tutorial about nested menus
A) Use root and button elements
B) use STRLIST elements
show screenshots
Original issue reported on code.google.com by [email protected]
on 13 Nov 2011 at 11:40
Create a release for LC, it should Arduino 1.0 compatible
Original issue reported on code.google.com by [email protected]
on 29 Mar 2012 at 6:50
Should allow
- file/folder selection
- multi selection
introduce a first column
Additional options:
F font of the first column
e pixel/char space of the first colunn
E relative space of the first column
e or E will activate the new column and a new message will be sent
The returned string will be displayed in the first column
Original issue reported on code.google.com by [email protected]
on 16 Apr 2012 at 5:31
- menu and graphics together
- switch between menu and graphics
Original issue reported on code.google.com by [email protected]
on 10 Jan 2012 at 2:10
change event driver (include statements)
Original issue reported on code.google.com by [email protected]
on 11 Jan 2012 at 11:15
fixed, but test is missing
check el_u32num and el_text
Original issue reported on code.google.com by [email protected]
on 1 Aug 2011 at 8:18
http://www.nongnu.org/avr-libc/user-manual/group__util__atomic.html#ga362c18b15a
09703e42e1c246c47420ef
#include <util/atomic.h>
ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
{
// ...
}
to be protected from interrupts. This will ensure, that setKey can be called
within interrupts.
Maybe, add this also to PutIntoQueue()
Original issue reported on code.google.com by [email protected]
on 10 Jul 2011 at 11:03
Checkboxes are like radio buttons, but rather than selecting one value, they
toggle between two values.
As it is, right now the only way to implement an on/off control is with two
radio buttons or a combobox.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2011 at 6:53
example: set time
four parts:
- local variables
- m2tk code, used/modifies local variables
- procedure: fill local variables (with current time)
- procedure: use local variables (to set current time)
Original issue reported on code.google.com by [email protected]
on 26 Mar 2012 at 7:07
function description
Original issue reported on code.google.com by [email protected]
on 7 Apr 2012 at 9:42
check if this m2tklib is compatible
Original issue reported on code.google.com by [email protected]
on 22 Aug 2011 at 11:22
introduce element which has a selectable width and height (box?)
idea: can be placed between strlist and vsb
Original issue reported on code.google.com by [email protected]
on 7 Sep 2011 at 10:31
Background: The u8glib subsystem does not have an xor operation. However, to
render text fields in the focus-box mode, it is required for the low level
driver to know the color for text drawing procedures within the chars of a text
element.
therefor pass
M2_GFX_MSG_DOWN, new depth as arg
and
M2_GFX_MSG_UP, old depth as arg
Original issue reported on code.google.com by [email protected]
on 28 Mar 2012 at 6:17
The attached patch adds this support, in a fashion similar to the DOGM driver.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2011 at 5:29
Attachments:
fix bug in
m2_calc_hlist_width_overlap_correction
which does not handle the value cnt=0 correctly.
also check vlist
the result of this bug was, that the elements within the hlist are shifted by
one to the right.
Original issue reported on code.google.com by [email protected]
on 21 Aug 2011 at 7:35
should be checked. probably, this has to be fixed
Original issue reported on code.google.com by [email protected]
on 10 Sep 2011 at 9:08
put some space between other element
use w and h, only makes sens within vlist, hlist, grid
Original issue reported on code.google.com by [email protected]
on 9 Sep 2011 at 4:50
example to generate any frequency
Original issue reported on code.google.com by [email protected]
on 7 Jul 2011 at 10:36
write M2_ELINFO, element to display some text, based on the strlist element
- extract total number of lines
- extract specified line
Original issue reported on code.google.com by [email protected]
on 22 Aug 2011 at 11:25
see StrList example "Selected:Nothing" looks odd.
Add space, similar to the pre
Original issue reported on code.google.com by [email protected]
on 15 Apr 2012 at 9:26
It's not clear whether a GRIDLIST will behave correctly if the number of
entries in the list is not a multiple of the grid width.
If not, then it would be good to have a predefined empty label for padding the
list.
This may be clarified when M2_GRIDLIST is documented.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2011 at 7:24
execute sw test
Original issue reported on code.google.com by [email protected]
on 10 Sep 2011 at 3:55
- document ".x" for M2_U32NUM
- release testing
Original issue reported on code.google.com by [email protected]
on 15 Jul 2011 at 9:49
Configure this menu:
M2_LABEL(_main_title, "f1", "Title");
M2_ROOT(_main_dummy, "f0", "Dummy", &_dummy);
M2_LIST(_main_list) = { &_main_title, &_main_dummy };
M2_VLIST(_main, NULL, _main_list);
M2tk m2(&_main, m2_es_arduino, m2_eh_4bs, m2_gh_glcd_ffs);
Then call:
m2_SetKey(M2_KEY_PREV);
m2_SetKey(M2_KEY_PREV);
m2_SetKey(M2_KEY_PREV);
This will crash/hang an Arduino.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2011 at 6:42
not so sure, if
y -= h;
is really correct (sdl gh)
rethink about it
Original issue reported on code.google.com by [email protected]
on 21 Aug 2011 at 2:40
M2_LABEL(_setup_title, "f1", "Setup");
M2_LABEL(_setup_beep_l, "f0", "Beep");
M2_COMBO(_setup_beep_c, "f0", &_setup_beep_state, 3, _setup_beep_strings);
M2_LIST(_setup_beep_list) = { &_setup_beep_l, &_setup_beep_c };
M2_HLIST(_setup_beep, NULL, &_setup_beep_list);
M2_ROOT(_setup_exit, "f0", "exit", &_main);
M2_LIST(_setup_list) = { &_setup_title, &_setup_beep, &_setup_exit };
M2_VLIST(_setup, NULL, _setup_list);
This menu hangs after drawing the "Setup" title.
If it is re-organised without the _setup_beep_list/HLIST and all three elements
are listed in the _setup_list, it works correctly.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2011 at 7:20
the issue for Arduino 1.0 has been fixed is included into v1.04, but v1.04 is
only available for GLCD
Original issue reported on code.google.com by [email protected]
on 12 Jan 2012 at 7:29
check and document BUTTONPTR and LABELP
Original issue reported on code.google.com by [email protected]
on 28 Jan 2012 at 10:20
- review documentation
- change graphics handler for GLCD
- do testing
(see E-Mail)
Original issue reported on code.google.com by [email protected]
on 5 Sep 2011 at 10:14
needs some modification because of the picture loop
Original issue reported on code.google.com by [email protected]
on 12 Jan 2012 at 7:28
see the bf handler with LED flash for example
Original issue reported on code.google.com by [email protected]
on 7 Apr 2012 at 9:48
2nd solution is:
avoid switch statements, use the next step logic directly in the buttons
Original issue reported on code.google.com by [email protected]
on 29 Mar 2012 at 5:26
put some space between other element
use w and h, only makes sens within vlist, hlist, grid
Original issue reported on code.google.com by [email protected]
on 8 Sep 2011 at 8:02
copy functionality from dogm128 graphics handler
Original issue reported on code.google.com by [email protected]
on 11 Jul 2011 at 2:48
cd release/arduino_glcd
./create_release
The resulting libraries directory is missing M2tk.cpp, M2tk.h and
utility/m2null.c compared with the released zipfile.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2011 at 5:18
Add element which gets the string from a callback procedure.
const char get_str(void)
{
return "label text"
}
Original issue reported on code.google.com by [email protected]
on 26 Jan 2012 at 9:34
DATA_UP/DOWN not accepted by arduino
-> DATA_UP and DATA_DOWN support inside m2pin.c
DATA_UP/DOWN should fallback to prev/next (e.g. in strlist)
-> 6bs handler change
Original issue reported on code.google.com by [email protected]
on 21 Mar 2012 at 6:31
check the combo code in sdl. Are there any bugs inside?
Original issue reported on code.google.com by [email protected]
on 21 Aug 2011 at 7:52
Arduino's event source is good to start project but may be good idea to have
some choice?
for instance I wrote this one, its work well but may be it is possible to use
your library's pin-key mapping to develop common case:
--------------------------------------------------------------------
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
uint8_t m2_es_arduino_ir(m2_p ep, uint8_t msg) {
switch(msg)
{
case M2_ES_MSG_GET_KEY:
if (irrecv.decode(&results)) {
irrecv.resume(); // Receive the next value
switch(results.value) {
case 0xFFC23D:
return M2_KEY_SELECT;
case 0xFFB04F:
return M2_KEY_EXIT;
case 0xFF02FD:
return M2_KEY_NEXT;
case 0xFF22DD:
return M2_KEY_PREV;
case 0xFF0000:
return M2_KEY_DATA_UP;
case 0xFF0001:
return M2_KEY_DATA_DOWN;
default:
return M2_KEY_NONE;
}
}
default:
return 0;
}
}
--------------------------------------------------------------------
BTW: I have disable key debouncing in library. Without that this event provider
do not works properly.
Original issue reported on code.google.com by [email protected]
on 26 Nov 2011 at 6:25
... to dogm and char LCD.
Perhaps create tutorial. Objective: Two different, independent processes.
Original issue reported on code.google.com by [email protected]
on 20 Aug 2011 at 7:24
if the u8 is incremented to 10, we get an exception (m2sdl)
Original issue reported on code.google.com by [email protected]
on 21 Aug 2011 at 2:43
write a more complete tutorial, including state machine design
Original issue reported on code.google.com by [email protected]
on 10 Sep 2011 at 12:59
by redefining the ptr-list argument in the element structures, it should be
possible to emit
warning: initialization from incompatible pointer type
(error in C++)
if the "&" is used on the list.
instead of the current
m2_rom_void_p el_list;
use
m2_rom_void_p *el_list;
current definition is:
#define M2_PROGMEM PROGMEM
typedef void m2_rom_void M2_PROGMEM;
typedef const m2_rom_void *m2_rom_void_p;
Original issue reported on code.google.com by [email protected]
on 12 Jul 2011 at 9:56
- example needed (maybe takeover glcd SensorValues example, but it should be
simplified)
- check for SELECT message, this has been added but it has not been tested
Original issue reported on code.google.com by [email protected]
on 4 Sep 2011 at 12:01
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.