libDaisy
Hardware Library for Daisy
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

Logging to external ports (Serial, JTAG, etc.) More...

Detailed Description

Logging to external ports (Serial, JTAG, etc.)

Intefaces for Logging over USB, etc.

The following is a short example of using the DaisySeed::Logger to print to a serial port.

#include "daisy_seed.h"
using namespace daisy;
int main(void)
{
// Initialize the Daisy Seed
hw.Init();
// Start the log, and wait for connection
hw.StartLog(true);
// Print "Hello World" to the Serial Monitor
hw.PrintLine("Hello World!");
while(1) {}
}
This is the higher-level interface for the Daisy board. All basic peripheral configuration/initiali...
Definition daisy_seed.h:19
static void StartLog(bool wait_for_pc=false)
Definition daisy_seed.h:133
void Init(bool boost=false)
static void PrintLine(const char *format, VA... va)
Definition daisy_seed.h:126
Hardware defines and helpers for daisy field platform.
Definition index.h:2

Topics

 LoggerHelperMacros
 
 LoggerStaticMembers
 member variable definition (could switch to inline statics in C++17)
 

Classes

class  daisy::Logger< dest >
 Interface for simple USB logging. More...
 
class  daisy::Logger< LOGGER_NONE >