Skip to content

Commit

Permalink
Fix #323: adjust catena_hello sketch to match new lib
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Jun 13, 2022
1 parent c260c62 commit 17fa04b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions examples/catena_hello/catena_hello.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,21 @@ Author:
*/

#include <Catena.h>
#include <Catena_AppObjects.h>
#include <Catena_Led.h>

using namespace McciCatena;

// declare the global object for the platform.
Catena gCatena;

// declare the LED object
StatusLed gLed (Catena::PIN_STATUS_LED);
Catena gCatena(Version_t{CATENA_ARDUINO_PLATFORM_VERSION}, __FILE__, "Simple hello-world sketch");

void setup()
{
gCatena.begin();
gCatena.setup();

gCatena.SafePrintf("Hello, world!\n");
gCatena.SafePrintf("This is a basic demo program for the MCCI Catena-Arduino-Platform library.\n");
gCatena.SafePrintf("Enter 'help' for a list of commands.\n");
gCatena.SafePrintf("(remember to select 'Line Ending: Newline' at the bottom of the monitor window.)\n");

gLed.begin();
gCatena.registerObject(&gLed);
gLed.Set(LedPattern::FastFlash);
}

Expand Down

0 comments on commit 17fa04b

Please sign in to comment.