From 9d5448c19c7f1dd814ec7d99f3049702b7b487b0 Mon Sep 17 00:00:00 2001 From: mobileflowllc Date: Tue, 27 Jun 2017 12:31:39 -0700 Subject: [PATCH] readme update --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 37 ++++++++++++++++++++ README.md | 99 +++++++++++++++++++++++++++++++++++++---------------- 3 files changed, 107 insertions(+), 29 deletions(-) delete mode 100644 .DS_Store create mode 100644 .gitignore diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 966892a9bb19ede9735107f0e18b617191d1d0cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5Iwu5S<}GibNAS$~^&6ZeT@5qM-8uK(bNz#91pOD5YC&!GUP$IRJ;?&CY;g zaFGfjG9&H2-Pw8jc~N#fM8wl|H6a=k(FjG5rO{*J?j1U?;6os%IqvC}R&+`mDtjjS zi!RywF`ZMSnyzVk|B)(q8d_rPZa$k7Wvm-L!t?uXtUBg-wO&Ds*UjZi;_k3k9jh@^r2?Y$B%fGgk%d{;p3 zhkzoO8Mcb)>OhrJ0N@brWN1q+A)H{C8McZTfw5A7N@YtiSn2Qwi^~jKMWqv4^1-(9 zXY#^nb<7`9IB}-vwJYEXbQKtAcP#J!8U8Z8Nq(2&Jy*aL_-6|6FfZ~c4rOoakK@T( w8&IxL#3Zhj1`O@aM*uointValue; + Serial.println("Lightbulb is ", onOff ); -## Contributing + if ( onOff ) { + digitalWrite(LED, HIGH); // sets the LED on + } + else { + digitalWrite(LED, LOW); // sets the LED off + } -Here's how you can make changes to this library and eventually contribute those changes back. + } -To get started, [clone the library from GitHub to your local machine](https://help.github.com/articles/cloning-a-repository/). + if (!client.connected()) + { -Change the name of the library in `library.properties` to something different. You can add your name at then end. + Serial.println(); + Serial.println("disconnecting."); + client.stop(); + for(;;); + + } -Modify the sources in and with the new behavior. -To compile an example, use `particle compile examples/usage` command in [Particle CLI](https://docs.particle.io/guide/tools-and-features/cli#update-your-device-remotely) or use our [Desktop IDE](https://docs.particle.io/guide/tools-and-features/dev/#compiling-code). +} +``` -After your changes are done you can upload them with `particle library upload` or `Upload` command in the IDE. This will create a private (only visible by you) library that you can use in other projects. Do `particle library add homekit_myname` to add the library to a project on your machine or add the homekit_myname library to a project on the Web IDE or Desktop IDE. +See the [examples](examples) folder for more details. -At this point, you can create a [GitHub pull request](https://help.github.com/articles/about-pull-requests/) with your changes to the original library. +## Documentation -If you wish to make your library public, use `particle library publish` or `Publish` command. ## LICENSE Copyright 2017 moflo -Licensed under the license +Licensed under the GNU LPL license.