Hello all,
I am trying to use the SDFat library to log data on an SD card on a teensy 4.1 at a fast rate. To do this, I am looking to write data in HEX format. In the examples, specifically the teensySDIOLogger, the ringbuf.h library included with SDFat is used to store data until enough has accumulated to write a block to the SD card. The example uses "print" and "write" functions to populate the buffer. I cannot seem to find how to make these into padded hexadecimals as you can using the usual "print" functions for things like Serial. Is there something I am missing? I am pretty new to this stuff, so I still miss a lot. Included is the specific example I am referencing.
I am trying to use the SDFat library to log data on an SD card on a teensy 4.1 at a fast rate. To do this, I am looking to write data in HEX format. In the examples, specifically the teensySDIOLogger, the ringbuf.h library included with SDFat is used to store data until enough has accumulated to write a block to the SD card. The example uses "print" and "write" functions to populate the buffer. I cannot seem to find how to make these into padded hexadecimals as you can using the usual "print" functions for things like Serial. Is there something I am missing? I am pretty new to this stuff, so I still miss a lot. Included is the specific example I am referencing.