-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
770b2f8
commit 1452282
Showing
2 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# PNG-Arduino-Framework - Beta 0.1 - Bluetooth | ||
|
||
.PNG - Programmers of New Generation | ||
|
||
|
||
## About | ||
|
||
PNG Framework was developed by stutents of Unesp - University of the State of São Paulo, Brazil, with the goal to turn Arduino project development easier. The framework has a chain of modular classes, compatible with some Arduino components. | ||
|
||
|
||
## Tutorials | ||
* Bluetooth: | ||
* [How to connect an Android device with Arduino and bluetooth](https://bytedebugger.wordpress.com/2014/06/27/tutorial-how-to-connect-an-android-device-with-arduino-and-bluetooth/) | ||
|
||
|
||
## Installation | ||
|
||
1. Download the master branch from GitHub. | ||
2. Unzip it | ||
3. Move all folders to your Library folder (On your `Libraries` folder inside Sketchbooks of Arduino software). | ||
|
||
|
||
## Bluetooth | ||
|
||
This module can be used to send and receive bluetooth data. If you want to connect your Arduino with a Bluetooth device, Arduino or any other, check the Helpers module to find some classes that will help you to connect them. | ||
This module was tested with: | ||
* BC417 Bluetooth to Serial | ||
* Bluetooth-RS232 HC-05 | ||
|
||
It'll probably work with similar components. If you test it a component not listed here, please add a comment in my blog, open a pull request or edit this file to share if it's working or if you are getting some error. | ||
|
||
|
||
## Example | ||
|
||
Include the library | ||
```c++ | ||
#include "Bluetooth.h" | ||
``` | ||
|
||
Create a new Bluetooth object | ||
```c++ | ||
Bluetooth *blue = new Bluetooth(5, 6); | ||
``` | ||
|
||
Add the following method in **void setup()**: | ||
```c++ | ||
blue->setupBluetooth(); | ||
``` | ||
Now you can use any method on **void loop()**: | ||
```c++ | ||
String msg = blue->read(); // read and receive a message | ||
blue->send("I'm sending a message"); | ||
``` | ||
## Documentation | ||
**Bluetooth(int r, int t);** - Create a new Bluetooth object with RX and TX PINs | ||
**int getrxPin();** - Get the RX PIN | ||
**int gettxPin();** - Get the TX PIN | ||
**char * getPIN();** - Get Bluetooth PIN | ||
**char * read();** - Read and receive a message | ||
**char * getName();** - Get the Bluetooth device name | ||
**char getMessageEnd();** - Get the char that means 'end of string' | ||
**void setMessageEnd(char end);** - Set the char that mean 'end of string' | ||
**void setName(char name[]);** - Set Bluetooth device name | ||
**void setrxPin(int rx);** - Set RX PIN | ||
**void settxPin(int tx);** - Set TX PIN | ||
**void setupBluetooth();** - Setup the Bluetooth module | ||
**void send(char c[]);** - Send a message | ||
**void setPIN(int pin);** - Set bluetooth PIN | ||
## Contribute | ||
This library still under development. We need help adding new components and testing with differents Arduino and components versions. | ||
Any help will be appreciated :) | ||
## About .PNG team | ||
[Aron Barreira Bordin](http://github.com/aron-bordin/) | ||
Felipe Kutait | ||
Hugo Waki | ||
[Mateus Lopes](https://github.com/lopeslopes) | ||
Matheus Barbosa | ||
[Raul Pelegrini Neto](https://github.com/RaulPelegrini) | ||
[Vinicius Moretto](https://github.com/vinimoretto) | ||
Vitor Costanzo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
PNG-Arduino-Framework - Beta 0.1 | ||
================================ | ||
|
||
.PNG - Programmers of New Generation | ||
|
||
|
||
## About | ||
|
||
PNG Framework was developed by stutents of Unesp - University of the State of São Paulo, Brazil, with the goal to turn Arduino project development easier. The framework has a chain of modular classes, compatible with some Arduino components. | ||
|
||
|
||
## Roadmap | ||
|
||
We have to organize all modules, write some tutorials and publish it. It will take some time... | ||
|
||
|
||
## Libraries | ||
|
||
This version supports some Arduino components: | ||
* Bluetooth | ||
* [LED Matrix - 74HC595/74HC138](http://www.elabpeers.com/led-matrix-display.html) | ||
|
||
|
||
## Tutorials | ||
* Bluetooth: | ||
* [How to connect an Android device with Arduino and bluetooth](https://bytedebugger.wordpress.com/2014/06/27/tutorial-how-to-connect-an-android-device-with-arduino-and-bluetooth/) | ||
|
||
* LED Matrix: | ||
* [How to use Dot LED Matrix Display with Arduino](https://bytedebugger.wordpress.com/2015/01/28/tutorial-how-to-use-dot-led-matrix-display-with-arduino/) | ||
* [Flappy Duino – Creating an Arduino clone of Flappy Bird with LED Matrix](https://bytedebugger.wordpress.com/2015/01/29/flappy-duino-creating-an-arduino-clone-of-flappy-bird-with-led-matrix/) | ||
|
||
|
||
## Installation | ||
|
||
1. Download the master branch from GitHub. | ||
2. Unzip it | ||
3. Move all folders to your Library folder (On your `Libraries` folder inside Sketchbooks of Arduino software). | ||
|
||
|
||
## Contribute | ||
|
||
This library still under development. We need help adding new components and testing with differents Arduino and components versions. | ||
Any help will be appreciated :) | ||
|
||
|
||
## About .PNG team | ||
|
||
[Aron Barreira Bordin](http://github.com/aron-bordin/) | ||
|
||
Felipe Kutait | ||
|
||
Hugo Waki | ||
|
||
[Mateus Lopes](https://github.com/lopeslopes) | ||
|
||
Matheus Barbosa | ||
|
||
[Raul Pelegrini Neto](https://github.com/RaulPelegrini) | ||
|
||
[Vinicius Moretto](https://github.com/vinimoretto) | ||
|
||
Vitor Costanzo |