Sorry I dnon't know how many times you need telling DO NOT USE A FLOAT!!!!!You will suffer from rounding errors. Mathematical operations will not be commutative. What do you not understand about using an int with the numbers greater than your resolution?

andlcd.setMCPType(LTI_TYPE_MCP23008); // add this at the top of void setup()

Hope this helps someone.

--EDIT--I found the MENWIZ lib changes in a blog that originally made them work with the LiquidTWI library, when trying to figure out how to make the Adafruit I2c backpack work with LiquidTWI I stumbled on their fork. I do not know the name, nor can I find the blog I found the original information on. My I'd give credit if I could find it.

Hi guys. I'm back.I've lost all the reply notifications, without any apparent reason.I'll try to work on menwiz in order to implement some improvement as soon as possible.

I'm also working on a completely different slim library implementing the notion of "watchdog" on any user variable. In this new lib it is possible to create for any user defined variable some triggers, that is an action to be fired when the trigger conditions (>,=, <,null for now) are verified. As many sketches are nothing else than a continuous control on some variable values, this lib let the user concentrate on the actions to be performed instead of the control logic, allowing very compact user code...stay tuned !

I am trying to use Menwiz with my setup using an encoder (see code below - I have borrowed a lot from others in this thread!). I have tried setting up an exit function in the menu so I can escape back up to the previous level. The function works as expected but once I exit a submenu I cannot re-enter it without resetting the Arduino. It seems that when I try to re-enter the submenu it automatically selects 'exit' and brings me right back out. I don't think it is a button debounce issue because it seems to be working fine otherwise.

Any thoughts on why this might be happening? I have the feeling I am missing something simple...

I am starting to use MENWIZ in an application I'm writing and have discovered a small problem in the error reporting function. I first noticed that the error numbers being found were not any of those created in the source code. I traced the problem to be because the variable MW_error is defined as type byte but is being used with values of greter than 255. changing the definition on line 46 of MENUWIZ.cpp from 'byte MW_error' to 'int MW_error' solved the problem for me.

btw, I see there are some unexpected debug messages being sent down the serial port, these are coming from statements at around lines 795 to 814 of MENWIZ.cpp

I am very happy with the operation of the library, thanks for your good work. I have managed to make it partially work with a modified LCD library using some otherwise unsupported i2c LCD devices, i2c BV4618 and a T6963 with an spi MCP23S17 port expander interface.