Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
WonITKorea committed Apr 12, 2024
1 parent 67fcdb5 commit 2933dcc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 48 deletions.
10 changes: 3 additions & 7 deletions .vscode/arduino.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"sketch": "code\\Testing_Crate\\GPSTest\\GPSTest.ino",
"board": "rp2040:rp2040:rpipico",
"port": "COM6",
"output": "../build",
"intelliSenseGen": "global",
"programmer": "esptool",
"configuration": "flash=2097152_0,freq=133,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Enabled,dbgport=Disabled,dbglvl=None,usbstack=picosdk,ipbtstack=ipv4only,uploadmethod=default"
"board": "arduino:avr:uno",
"port": "COM18",
"sketch": "code\\Testing_Crate\\GPSTest\\GPSTest.ino"
}
24 changes: 12 additions & 12 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"configurations": [
{
"name": "Arduino",
"compilerPath": "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.2.0-d04e724\\bin\\arm-none-eabi-g++",
"compilerPath": "C:\\Users\\wonit\\AppData\\Local\\Arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.1.0-a-d3d2e6b\\bin\\arm-none-eabi-g++",
"compilerArgs": [
"-I",
"-Werror=return-type",
Expand All @@ -13,22 +13,22 @@
"-mthumb",
"-ffunction-sections",
"-fdata-sections",
"-fexceptions"
"-fno-exceptions"
],
"intelliSenseMode": "gcc-x64",
"includePath": [
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.7.2\\include",
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.7.2\\cores\\rp2040",
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.7.2\\variants\\rpipico",
"c:\\users\\user\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.2.0-d04e724\\arm-none-eabi\\include\\c++\\12.3.0",
"c:\\users\\user\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.2.0-d04e724\\arm-none-eabi\\include\\c++\\12.3.0\\arm-none-eabi\\thumb",
"c:\\users\\user\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.2.0-d04e724\\arm-none-eabi\\include\\c++\\12.3.0\\backward",
"c:\\users\\user\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.2.0-d04e724\\lib\\gcc\\arm-none-eabi\\12.3.0\\include",
"c:\\users\\user\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.2.0-d04e724\\lib\\gcc\\arm-none-eabi\\12.3.0\\include-fixed",
"c:\\users\\user\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.2.0-d04e724\\arm-none-eabi\\include"
"C:\\Users\\wonit\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.6.0\\include",
"C:\\Users\\wonit\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.6.0\\cores\\rp2040",
"C:\\Users\\wonit\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.6.0\\variants\\rpipico",
"c:\\users\\wonit\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.1.0-a-d3d2e6b\\arm-none-eabi\\include\\c++\\12.3.0",
"c:\\users\\wonit\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.1.0-a-d3d2e6b\\arm-none-eabi\\include\\c++\\12.3.0\\arm-none-eabi\\thumb",
"c:\\users\\wonit\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.1.0-a-d3d2e6b\\arm-none-eabi\\include\\c++\\12.3.0\\backward",
"c:\\users\\wonit\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.1.0-a-d3d2e6b\\lib\\gcc\\arm-none-eabi\\12.3.0\\include",
"c:\\users\\wonit\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.1.0-a-d3d2e6b\\lib\\gcc\\arm-none-eabi\\12.3.0\\include-fixed",
"c:\\users\\wonit\\appdata\\local\\arduino15\\packages\\rp2040\\tools\\pqt-gcc\\2.1.0-a-d3d2e6b\\arm-none-eabi\\include"
],
"forcedInclude": [
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.7.2\\cores\\rp2040\\Arduino.h"
"C:\\Users\\wonit\\AppData\\Local\\Arduino15\\packages\\rp2040\\hardware\\rp2040\\3.6.0\\cores\\rp2040\\Arduino.h"
],
"cStandard": "c11",
"cppStandard": "c++17",
Expand Down
35 changes: 6 additions & 29 deletions code/Testing_Crate/GPSTest/GPSTest.ino
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
#include <SoftwareSerial.h>
const int fan = 3;

// Choose two Arduino pins to use for software serial
int RXPin = 5;
int TXPin = 4;

// Default baud of NEO-6M is 9600
int GPSBaud = 9600;

// Create a software serial port called "gpsSerial"
SoftwareSerial gpsSerial(RXPin, TXPin);

void setup()
{
// Start the Arduino hardware serial port at 9600 baud
Serial.begin(9600);

// Start the software serial port at the GPS's default baud
gpsSerial.begin(GPSBaud);
void setup() {
pinMode(fan, OUTPUT);
}

void loop()
{
// Displays information when new sentence is available.
while (gpsSerial.available() > 0)
{
Serial.write(gpsSerial.read());
}
while (Serial.available() > 0)
{
gpsSerial.write(Serial.read());
}
void loop() {
int fanSpeed = 255;
analogWrite(fan, fanSpeed);
}

0 comments on commit 2933dcc

Please sign in to comment.