Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReadMe shows 'x Unsigned decimal integer ( 32bits max ).' That can't be right #38

Open
paynterf opened this issue May 19, 2020 · 0 comments

Comments

@paynterf
Copy link

The ReadMe section for printf format has the following line:

x Unsigned decimal integer ( 32bits max ).

That can't be right - this format specifier should be for hex display

In fact, these lines in my Arduino code:

    mySerial.printf("Checking for GL530/VLX53LOX at I2C address 0x29 with DEV_ID = 238/0xEE...\n");

    byte DEV_ID = read_byte_data_at(VL53L0X_REG_IDENTIFICATION_MODEL_ID);

    if (DEV_ID == 0xEE)
    {
        mySerial.printf("DEV_ID = %d/0x%x found at I2C addr %#X\n",
            DEV_ID, DEV_ID, GL530_I2C_ADDRESS);
    }

Produces this output

Opening port
Port open
Checking for GL530/VLX53LOX at I2C address 0x29 with DEV_ID = 238/0xEE...
DEV_ID = 238/0xEE found at I2C addr 0x29


Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant