////// I'd put all the library includes first, rather than down in with the declarations.
//////// No need to re-name the named pins. I would remove these two lines and use SDA and SCL in the declaration.
/////// It is good to distinguish global variables by having them start with a capital letter. I'd change it to "Hx711"
////// You did not name Pin 7:
/////// It is good to distinguish global variables by having them start with a capital letter. I'd change it to "ModeAxis"
////// Use the name ModeAxisPin in place of '7'
////// Give the magic constant a name!
Work in progress, I might not need to use the magic number at all to zero the counter.
////// It won't fit in an int (32,767 max) so you should mark the constant as 'long' (8584200L) or unsigned long (8584200UL)
////// If the range is 0 to 1023 you can store it in an 'int'.
I might change the range to Joystick.setZAxisRange(0, 16383);
//////What type does .setZAxis() take?
void setZAxis(int16_t value);
I want to find out how much step resolution is required by Gamepads, I think 16bit for Axis is an overkill for Windows. Then I will adjust all the variables to the desired type.
At this point I need to find out and learn how to properly trim the 24-bit coming from HX711 down to 12 - 16 bit data stream.
Thank you very much!!!