Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: luni

Search: Search took 0.00 seconds.

  1. Replies
    50
    Views
    20,338

    So far I've used it only for 64bit variables...

    So far I've used it only for 64bit variables where this is the only way (I know of) to 'printf' them.

    @mjs513: funny how complicated a simple thing like printing an 8bit variable can get :-).
    ...
  2. Replies
    50
    Views
    20,338

    More tests with the PRIs void setup() { ...

    More tests with the PRIs



    void setup()
    {
    while(!Serial){}

    Serial.println("int64_t");
    int64_t test0 = -2;
  3. Replies
    50
    Views
    20,338

    Nearly :-). You also need to add spaces: ...

    Nearly :-). You also need to add spaces:


    void setup()
    {
    while(!Serial){}

    uint32_t test = 42;
    Serial.printf("Var: %08" PRIu32 "\n", test);
    }
  4. Replies
    50
    Views
    20,338

    PRIxN -> x is the usual u, d, x, X etc N is the...

    PRIxN -> x is the usual u, d, x, X etc N is the width of the variable.

    E.g.
    PRIu16 will print a 16bit unsigned
    PRId64 will print a 64bit signed
    PRIX32 will print a 32bit hex number with...
  5. Replies
    50
    Views
    20,338

    Tested with the code below. Works as expected. ...

    Tested with the code below. Works as expected.



    #include "EEPROM.h"

    struct GoodType // this is bytewise copyable
    {
    const char* text = "Good struct";
    float version = 1.54f;
  6. Replies
    50
    Views
    20,338

    Great, the EncoderTool...

    Great, the EncoderTool which depends on a current Bounce2 now compiles out of the box. Thanks
Results 1 to 6 of 6