Adding version number to all examples

This commit is contained in:
Rodrigo Alfonso
2024-01-25 01:08:14 -03:00
parent 2a52e88b8d
commit 4ed9ae21c5
11 changed files with 19 additions and 15 deletions

View File

@@ -49,7 +49,8 @@ int main() {
// Sender options
if (isSenderMode) {
if (result != LinkCableMultiboot::Result::SUCCESS)
log("Press START to send the ROM...\nPress B to set client mode...");
log("LinkCableMultiboot_demo\n (v6.2.0)\n\nPress START to send the "
"ROM...\nPress B to set client mode...");
if (keys & KEY_START) {
log("Sending... (SELECT to cancel)");

View File

@@ -45,7 +45,7 @@ int main() {
u16 keys = ~REG_KEYS & KEY_ANY;
linkCable->send(keys + 1); // (avoid using 0)
std::string output = "";
std::string output = "LinkCable_basic (v6.2.0)\n\n";
if (linkCable->isConnected()) {
u8 playerCount = linkCable->playerCount();
u8 currentPlayerId = linkCable->currentPlayerId();

View File

@@ -93,10 +93,10 @@ inline void setUpInterrupts() {
void printTutorial() {
#ifndef USE_LINK_UNIVERSAL
DEBULOG("LinkCable demo");
DEBULOG("LinkCable_full (v6.2.0)");
#endif
#ifdef USE_LINK_UNIVERSAL
DEBULOG("LinkUniversal demo");
DEBULOG("LinkUniversal_full (v6.2.0)");
#endif
DEBULOG("");

View File

@@ -89,10 +89,10 @@ int main() {
while (true) {
#ifndef USE_LINK_UNIVERSAL
std::string output = "LinkCable\n\n";
std::string output = "LinkCable_stress (v6.2.0)\n\n";
#endif
#ifdef USE_LINK_UNIVERSAL
std::string output = "LinkUniversal\n\n";
std::string output = "LinkUniversal_stress (v6.2.0)\n\n";
#endif
link->deactivate();

View File

@@ -27,7 +27,7 @@ int main() {
while (true) {
// (3) Use the pins
std::string output = "";
std::string output = "LinkGPIO_demo (v6.2.0)\n\n";
// Commands
u16 keys = ~REG_KEYS & KEY_ANY;

View File

@@ -33,7 +33,7 @@ int main() {
u16 prevKeys = 0;
while (true) {
std::string output = "";
std::string output = "LinkRawCable_demo (v6.2.0)\n\n";
u16 keys = ~REG_KEYS & KEY_ANY;
if (!linkRawCable->isActive()) {

View File

@@ -131,6 +131,7 @@ void DebugScene::load() {
log("---");
log("LinkRawWireless demo");
log(" (v6.2.0)");
log("");
log("START: reset wireless adapter");
log("A: send command");

View File

@@ -32,7 +32,7 @@ int main() {
u32 counter = 0;
while (true) {
std::string output = "";
std::string output = "LinkSPI_demo (v6.2.0)\n\n";
u16 keys = ~REG_KEYS & KEY_ANY;
if (!linkSPI->isActive()) {

View File

@@ -21,10 +21,11 @@ void init() {
int main() {
init();
log("Press A to start\n\n\n\n\nhold LEFT on start:\n -> force "
"cable\n\nhold RIGHT on start:\n -> force wireless\n\nhold UP on "
"start:\n -> force wireless server\n\nhold DOWN on start:\n -> force "
"wireless client\n\nhold B on start:\n -> set 2 players (wireless)");
log("LinkUniversal_basic (v6.2.0)\n\n\nPress A to start\n\n\nhold LEFT on "
"start:\n -> force cable\n\nhold RIGHT on start:\n -> force "
"wireless\n\nhold UP on start:\n -> force wireless server\n\nhold DOWN "
"on start:\n -> force wireless client\n\nhold B on start:\n -> set 2 "
"players (wireless)");
waitFor(KEY_A);
u16 initialKeys = ~REG_KEYS & KEY_ANY;
bool forceCable = initialKeys & KEY_LEFT;

View File

@@ -122,6 +122,7 @@ void MultibootScene::load() {
log("---");
log("LinkWirelessMultiboot demo");
log(" (v6.2.0)");
log("");
log("A: send ROM");
log("B: toggle log level");

View File

@@ -47,8 +47,8 @@ int main() {
start:
// Options
log("Press A to start\n\n\n\n\n\n\n\n\nhold LEFT on start:\n -> "
"disable forwarding\n\nhold UP on start:\n -> disable "
log("LinkWireless_demo (v6.2.0)\n\n\n\nPress A to start\n\n\n\n\nhold LEFT "
"on start:\n -> disable forwarding\n\nhold UP on start:\n -> disable "
"retransmission\n\nhold B on start:\n -> set 2 players\n\nhold START on "
"start:\n -> async ACK");
waitFor(KEY_A);