Skip to content

Commit

Permalink
Merge pull request Seeed-Studio#1143 from Love4yzp/docusaurus-version
Browse files Browse the repository at this point in the history
chore: update C6 & vision v2 sth.
  • Loading branch information
MatthewJeffson authored Apr 23, 2024
2 parents 4b194b3 + 4f5973e commit 2d030f1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The AT command set specification can be found at [SSCMA-Micro](https://github.co
If you need to flash a new firmware or update the firmware, you can navigate to the [SenseCraft AI](https://seeed-studio.github.io/SenseCraft-Web-Toolkit/#/setup/process) website.
:::

<p style={{textAlign: 'center'}}><img src="https://files.seeedstudio.com/wiki/grove-vision-ai-v2/dev/at-diagram.png" alt="at diagram" width={420} height="auto" /></p>
<p style={{textAlign: 'center'}}><img src="https://files.seeedstudio.com/wiki/grove-vision-ai-v2/dev/at-diagram.png" alt="at diagram" width={320} height="auto" /></p>

<div class="github_container" style={{textAlign: 'center'}}>
<a class="github_item" href="https://github.com/Seeed-Studio/SSCMA-Micro/blob/dev/docs/protocol/at_protocol.md">
Expand Down Expand Up @@ -518,14 +518,18 @@ SSCMA AI;

void setup()
{
Serial.begin(9600); // Initialize serial port
AI.begin();
AI.save_jpeg();
Serial.begin(9600); // Initialize serial port
AI.begin();
AI.save_jpeg();
}

void loop()
{
if (!AI.invoke(1, false, false)){} // every invoke it will save jpeg
static int cnt = 0;
// every invoke it will save jpeg
if (!AI.invoke(1, false, false)){
Serial.printf("Record image %d\n", ++cnt);
}
}

```
Expand All @@ -552,14 +556,18 @@ SSCMA AI;

void setup()
{
Serial.begin(9600); // Initialize serial port
AI.begin(&atSerial);
AI.save_jpeg();
Serial.begin(9600); // Initialize serial port
AI.begin(&atSerial);
AI.save_jpeg();
}

void loop()
{
if (!AI.invoke(1, false, true)){} // every invoke it will save jpeg
static int cnt = 0;
// every invoke it will save jpeg
if (!AI.invoke(1, false, true)){
Serial.printf("Record image %d\n", ++cnt);
}
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ In this example, software serial communication is set up on pins 2 (RX) and 3 (T
In the Arduino framework, the UART0 peripheral, which corresponds to pins D6/D7 at the hardware level, is referred to as Serial0.
```cpp
#define mySerial Serial0 // Alias for UART0 (Serial0)
#include <HardwareSerial.h>
HardwareSerial mySerial(0); // Alias for UART0 (Serial0)
void setup() {
Serial.begin(9600); // Initialize hardware serial (USB)
mySerial.begin(9600); // Initialize UART0 (Serial0)
Expand Down

0 comments on commit 2d030f1

Please sign in to comment.