Skip to content

Commit

Permalink
make new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Luftalian committed Sep 18, 2023
1 parent 0149b81 commit 6c29da3
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 37 deletions.
37 changes: 0 additions & 37 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,37 +0,0 @@
#include <Arduino.h>

#include <SPICREATE.h>

#include "infrastructure/router.h"

void loop()
{
bool check = Router1.icm20948Controller->Add(address);
if (check)
{
Serial.println("Success");
}
else
{
Serial.println("Failed");
}

delay(1000);

// int16_t rx[6] = {};
// uint8_t rx_buf[12] = {};
// Data result = Router1.icm20948Controller->Get(rx, rx_buf);
// Serial.println(result.accel[0]);
// Serial.println(result.accel[1]);
// Serial.println(result.accel[2]);


// uint8_t rx2[3] = {};
// Data result2 = Router1.lps25Controller->Get(rx2);
// Serial.println(result2.pressure[0]);
// Serial.println(result2.pressure[1]);
// Serial.println(result2.pressure[2]);

Router1.icm20948Controller->Add(address);
delay(1000);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions v1/src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include <Arduino.h>

#include <SPICREATE.h>

#include "infrastructure/router.h"

void loop()
{
bool check = Router1.icm20948Controller->Add(address);
if (check)
{
Serial.println("Success");
}
else
{
Serial.println("Failed");
}

delay(1000);

// int16_t rx[6] = {};
// uint8_t rx_buf[12] = {};
// Data result = Router1.icm20948Controller->Get(rx, rx_buf);
// Serial.println(result.accel[0]);
// Serial.println(result.accel[1]);
// Serial.println(result.accel[2]);


// uint8_t rx2[3] = {};
// Data result2 = Router1.lps25Controller->Get(rx2);
// Serial.println(result2.pressure[0]);
// Serial.println(result2.pressure[1]);
// Serial.println(result2.pressure[2]);

Router1.icm20948Controller->Add(address);
delay(1000);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6c29da3

Please sign in to comment.