Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
WonITKorea committed Feb 12, 2024
1 parent f26b8d0 commit 39918e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 deletions.
6 changes: 3 additions & 3 deletions .vscode/arduino.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"sketch": "code\\Display\\Display.ino",
"sketch": "code\\SKIDAQ_OBD2\\SKIDAQ_OBD2.ino",
"board": "esp32:esp32:esp32s3",
"port": "COM5",
"port": "COM18",
"output": "../build",
"intelliSenseGen": "global",
"programmer": "esptool",
"configuration": "JTAGAdapter=default,PSRAM=enabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=huge_app,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none"
"configuration": "JTAGAdapter=builtin,PSRAM=enabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=huge_app,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none"
}
24 changes: 2 additions & 22 deletions code/SKIDAQ_DashBoard/SKIDAQ_DashBoard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -212,30 +212,10 @@ void loop()
{
drsVal = digitalRead(drs);
CANMessage frame;
if (gBlinkLedDate < millis())
while (ACAN_ESP32::can.receive(frame))
{
gBlinkLedDate += 500;
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
Serial.print("Sent: ");
Serial.print(gSentFrameCount);
Serial.print(" ");
Serial.print("Receive: ");
Serial.print("Receive: ");
Serial.print(gReceivedFrameCount);
Serial.print(" ");
Serial.print(" STATUS 0x");
Serial.print(TWAI_STATUS_REG, HEX);
Serial.print(" RXERR ");
Serial.print(TWAI_RX_ERR_CNT_REG);
Serial.print(" TXERR ");
Serial.println(TWAI_TX_ERR_CNT_REG);
const bool ok = ACAN_ESP32::can.tryToSend(frame);
if (ok)
{
gSentFrameCount += 1;
}
}
while (ACAN_ESP32::can.receive(frame))
{
gReceivedFrameCount += 1;
}

Expand Down
1 change: 0 additions & 1 deletion code/SKIDAQ_Main/SKIDAQ_Main.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Pin Summary
GP4 - ADXL345 SDA Pin
GP5 - ADXL345 SCL Pin
GP7 - DIAG Mode Interrupt
GP9 - DynoJet Interrupt Output
GP10 - DHT Temp/Humid Sensor
GP12 - MOSFET Upshift
Expand Down

0 comments on commit 39918e3

Please sign in to comment.