From efc8baf35ce2e317e6870a59528d27cb99184eab Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 21 Feb 2019 20:46:37 -0600 Subject: Add Photon stuff --- Test/README.md | 35 +++++++++++++++++++++++++++++++++++ Test/project.properties | 1 + Test/src/Test.ino | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 Test/README.md create mode 100644 Test/project.properties create mode 100644 Test/src/Test.ino diff --git a/Test/README.md b/Test/README.md new file mode 100644 index 0000000..025960f --- /dev/null +++ b/Test/README.md @@ -0,0 +1,35 @@ +# Test + +A Particle project named Test + +## Welcome to your project! + +Every new Particle project is composed of 3 important elements that you'll see have been created in your project directory for Test. + +#### ```/src``` folder: +This is the source folder that contains the firmware files for your project. It should *not* be renamed. +Anything that is in this folder when you compile your project will be sent to our compile service and compiled into a firmware binary for the Particle device that you have targeted. + +If your application contains multiple files, they should all be included in the `src` folder. If your firmware depends on Particle libraries, those dependencies are specified in the `project.properties` file referenced below. + +#### ```.ino``` file: +This file is the firmware that will run as the primary application on your Particle device. It contains a `setup()` and `loop()` function, and can be written in Wiring or C/C++. For more information about using the Particle firmware API to create firmware for your Particle device, refer to the [Firmware Reference](https://docs.particle.io/reference/firmware/) section of the Particle documentation. + +#### ```project.properties``` file: +This is the file that specifies the name and version number of the libraries that your project depends on. Dependencies are added automatically to your `project.properties` file when you add a library to a project using the `particle library add` command in the CLI or add a library in the Desktop IDE. + +## Adding additional files to your project + +#### Projects with multiple sources +If you would like add additional files to your application, they should be added to the `/src` folder. All files in the `/src` folder will be sent to the Particle Cloud to produce a compiled binary. + +#### Projects with external libraries +If your project includes a library that has not been registered in the Particle libraries system, you should create a new folder named `/lib//src` under `/` and add the `.h`, `.cpp` & `library.properties` files for your library there. Read the [Firmware Libraries guide](https://docs.particle.io/guide/tools-and-features/libraries/) for more details on how to develop libraries. Note that all contents of the `/lib` folder and subfolders will also be sent to the Cloud for compilation. + +## Compiling your project + +When you're ready to compile your project, make sure you have the correct Particle device target selected and run `particle compile ` in the CLI or click the Compile button in the Desktop IDE. The following files in your project folder will be sent to the compile service: + +- Everything in the `/src` folder, including your `.ino` application file +- The `project.properties` file for your project +- Any libraries stored under `lib//src` diff --git a/Test/project.properties b/Test/project.properties new file mode 100644 index 0000000..d2afcd3 --- /dev/null +++ b/Test/project.properties @@ -0,0 +1 @@ +name=Test diff --git a/Test/src/Test.ino b/Test/src/Test.ino new file mode 100644 index 0000000..99e9198 --- /dev/null +++ b/Test/src/Test.ino @@ -0,0 +1,18 @@ +/* + * Project Test + * Description: + * Author: + * Date: + */ + +// setup() runs once, when the device is first turned on. +void setup() { + // Put initialization like pinMode and begin functions here. + +} + +// loop() runs over and over again, as quickly as it can execute. +void loop() { + // The core of your code will likely live here. + +} \ No newline at end of file -- cgit v1.2.3 From 29abd06088a0a42f188f62e89a18f460970b326d Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 21 Feb 2019 20:50:46 -0600 Subject: Nani --- ee1301/wk3/lab3/RootBabylonOG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee1301/wk3/lab3/RootBabylonOG.cpp b/ee1301/wk3/lab3/RootBabylonOG.cpp index 9972250..d0d8b39 100644 --- a/ee1301/wk3/lab3/RootBabylonOG.cpp +++ b/ee1301/wk3/lab3/RootBabylonOG.cpp @@ -13,7 +13,7 @@ double BabylonRoot(double n) { do { guess = gennewGuess(n,guess); cout << guess << endl; - } while (abs(guess-real)/real>0.05); //Keep guessing unitl within 5% of the actual square root + } while (abs(guess-real)/real>0.01); //Keep guessing unitl within 1% of the actual square root return guess; } -- cgit v1.2.3 From 63384f03bf734f316da7e08a5e2043504b8b36cc Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Thu, 21 Feb 2019 20:59:30 -0600 Subject: Rearrange --- Test/project.properties | 1 - Test/src/Test.ino | 18 ------------------ project.properties | 1 + src/Test.ino | 18 ++++++++++++++++++ 4 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 Test/project.properties delete mode 100644 Test/src/Test.ino create mode 100644 project.properties create mode 100644 src/Test.ino diff --git a/Test/project.properties b/Test/project.properties deleted file mode 100644 index d2afcd3..0000000 --- a/Test/project.properties +++ /dev/null @@ -1 +0,0 @@ -name=Test diff --git a/Test/src/Test.ino b/Test/src/Test.ino deleted file mode 100644 index 99e9198..0000000 --- a/Test/src/Test.ino +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Project Test - * Description: - * Author: - * Date: - */ - -// setup() runs once, when the device is first turned on. -void setup() { - // Put initialization like pinMode and begin functions here. - -} - -// loop() runs over and over again, as quickly as it can execute. -void loop() { - // The core of your code will likely live here. - -} \ No newline at end of file diff --git a/project.properties b/project.properties new file mode 100644 index 0000000..d2afcd3 --- /dev/null +++ b/project.properties @@ -0,0 +1 @@ +name=Test diff --git a/src/Test.ino b/src/Test.ino new file mode 100644 index 0000000..99e9198 --- /dev/null +++ b/src/Test.ino @@ -0,0 +1,18 @@ +/* + * Project Test + * Description: + * Author: + * Date: + */ + +// setup() runs once, when the device is first turned on. +void setup() { + // Put initialization like pinMode and begin functions here. + +} + +// loop() runs over and over again, as quickly as it can execute. +void loop() { + // The core of your code will likely live here. + +} \ No newline at end of file -- cgit v1.2.3