@lbuque for some reason, the values in my unit were way off when I received it and it did not work. Resetting the values got the unit to work. Not sure what corrupted the values.
Latest posts made by Rango
-
RE: MiniJoyC support in UIFlow2
-
RE: I2C support on UIFLOW 2.0
@toothlessboots Here is an example program where I use I2C commands to talk to the MiniJoyC hat
https://uiflow2.m5stack.com/?pkey=4b2548481e1644aa8a0ccc88ca8f7859
-
RE: MiniJoyC with UIFlow 2.1.4 and MstickC Plus 2 not returning x or y values
Turns out the calibration values stored on the MiniJoyC were all out of whack.
I created programs to show and set the calibration values usin raw i2c commands
Show: https://uiflow2.m5stack.com/?pkey=4b2548481e1644aa8a0ccc88ca8f7859
Set: https://uiflow2.m5stack.com/?pkey=165277eeb4364ab9be0d843ede823559
-
RE: MiniJoyC support in UIFlow2
I have written a program to set the calibration values for others having the same issue where the MiniJoyC calibration seems to be off.
https://uiflow2.m5stack.com/?pkey=165277eeb4364ab9be0d843ede823559
-
RE: MiniJoyC support in UIFlow2
@lbuque Would you mind running this code and let me know what the calibration values are for your MiniJoyC?
https://uiflow2.m5stack.com/?pkey=4b2548481e1644aa8a0ccc88ca8f7859
I want to set mine to working values.
It would be much appreciated.
-
RE: MiniJoyC support in UIFlow2
I figured it out, the calibration values were all off.
I reset them to 0x0000 min, 0x1000 max, 0x0800 center and everything is working!What a PITA.
@lbuque , Thanks for your reply. It made me dig deaper to find out what the issue was.
-
RE: MiniJoyC support in UIFlow2
@lbuque This test code does not work for me.
X always returns 0 and Y always returns -1
The values never change.Does this mean I have a defective MiniJoyC?
Even if everything works in UIFlow 1?What version of UIFlow2 are you using?
-
RE: MiniJoyC support in UIFlow2
I found if you scan the bus before doing any other read or write, things start to work with direct I2C calls, somewhat.
I can only get RAW values, reading from memory address 0x10 or 0x20 always return zeros.
Also, setting Calibration values doesn't seem to have an effect on the RAW values
Here is the code I have working to read RAW values and FW version as well as set RGB LED colors
It would still be nice if the actual library was working as expected
-
RE: MiniJoyC support in UIFlow2
@lbuque
This UIFlow1 code works
This UIFlow2 code does not work. X and Y are 0 and Firmware changes with button push
I get timeouts when trying to read I2C directly
Any help would be appreciated
-
RE: MiniJoyC support in UIFlow2
@lbuque get X and Y do not return values. Button works ok. Get fw version does not work either. I'll post my code later. But there aren't many options in the API to try. Even example code does not work.