Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnybergdahl authored Dec 21, 2023
1 parent b4e031d commit d851c06
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ JBWoprDevice wopr;
void setup() {
// Configure the JBWoprDevice class
JBWoprConfiguration* config = wopr.getConfiguration();
config->timeFormat = "%H %M %s";
config->timeFormat = "%H %M %s";
config->dateFormat = "%Y-%m-%d";
config->displayBrightness = 50;
config->defconLedsBrightness = 50;
config->displayBrightness = 50;
config->defconLedsBrightness = 50;

// Initialize the JBWoprDevice class, passing in the board version
// JBWoprBoardVariant::HAXORZ or JBWoprBoardVariant::ORIGINAL
wopr.begin(JBWoprBoardVariant::HAXORZ);
// Initialize the JBWoprDevice class, passing in the board version
// JBWoprBoardVariant::HAXORZ or JBWoprBoardVariant::ORIGINAL
wopr.begin(JBWoprBoardVariant::HAXORZ);
}

void loop() {
wopr.loop();
wopr.loop();

// Add your code here
// Add your code here
}
```

Expand Down Expand Up @@ -104,11 +104,11 @@ but you can also create your own effects by inheriting from the `JBWoprEffectBas
#include <jbwopr.h>
#include <effects/jbwopreffets.h>
begin() {
...
wopr.effectsRegisterEffect(new JBWoprMissileCodeSolveEffect(&wopr,
CodeSolveVariant::MOVIE,
1000,
"Movie solve"));
...
wopr.effectsRegisterEffect(new JBWoprMissileCodeSolveEffect(&wopr,
CodeSolveVariant::MOVIE,
1000,
"Movie solve"));
}

loop() {
Expand Down

0 comments on commit d851c06

Please sign in to comment.