Skip to content

Commit 632ff1f

Browse files
committed
Source file documentations.
1 parent 7d7e311 commit 632ff1f

File tree

5 files changed

+450
-1
lines changed

5 files changed

+450
-1
lines changed

Doxyfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,8 @@ HTML_EXTRA_STYLESHEET = "misc/doxygen-awesome.css"
12951295
# This tag requires that the tag GENERATE_HTML is set to YES.
12961296

12971297
HTML_EXTRA_FILES =
1298+
HTML_EXTRA_FILES += "assets/sim900-shield.png"
1299+
HTML_EXTRA_FILES += "assets/sim900-vector.png"
12981300

12991301
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
13001302
# will adjust the colors in the style sheet and background images according to

misc/main_page.md

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,101 @@
1-
@mainpage %SIM900 Overview
1+
@mainpage %SIM900 Library Overview
22
@tableofcontents
3+
4+
![Arduino CI](https://github.com/nthnn/SIM900/actions/workflows/arduino_ci.yml/badge.svg) ![Arduino Lint](https://github.com/nthnn/SIM900/actions/workflows/arduino_lint.yml/badge.svg)
5+
![Arduino Release](https://img.shields.io/badge/Library%20Manager-None-red?logo=Arduino)
6+
[![License: LGPL3.0](https://img.shields.io/badge/License-LGPL3.0-yellow.svg)](https://github.com/nthnn/SIM900/blob/main/LICENSE)
7+
8+
The %SIM900 Arduino Shield Library is a versatile and powerful Arduino library for interfacing with the %SIM900 GSM/GPRS module. This library provides a wide range of functionalities for working with the %SIM900 module, including sending and receiving calls, sending and receiving SMS, updating and extracting real-time clock data, sending HTTP requests, and retrieving various information about the %SIM900 module's status and the network it is connected to.
9+
10+
<table align="center">
11+
<tr>
12+
<td align="center">%SIM900 Arduino Shield</td>
13+
<td align="center">%SIM900 Vector</td>
14+
</tr>
15+
<tr>
16+
<td><img src="sim900-shield.png" height="350" /></td>
17+
<td><img src="sim900-vector.png" height="350" /></td>
18+
</tr>
19+
</table>
20+
21+
> **Note:** The `SIM900::request(SIM900HTTPRequest)` function is still underdevelopment.
22+
23+
## Features
24+
25+
- **Call Handling**: Make and receive calls with ease.
26+
- **SMS Communication**: Send and receive SMS messages effortlessly.
27+
- **Real-Time Clock**: Update and extract real-time clock data from the module.
28+
- **HTTP Requests**: Send HTTP requests and retrieve responses.
29+
- **Information Retrieval**: Gather data about network operator, module status, SIM card information, and more.
30+
- **Phonebook Management**: Store and retrieve phonebook accounts.
31+
- **Extensive Documentation**: Well-documented code and usage examples.
32+
33+
## Getting Started
34+
35+
### Installation
36+
37+
To use this library, follow these steps:
38+
39+
1. Download the library from the GitHub [repository](https://github.com/nthnn/SIM900).
40+
2. Open your Arduino IDE.
41+
3. Click on `Sketch` -> `Include Library` -> `Add .ZIP Library...`
42+
4. Select the downloaded library ZIP file.
43+
44+
Alternatively, you can click on the `Library Manager` then type "SIM900" to install this library for your projects.
45+
46+
### Hardware Setup
47+
48+
Make sure you have the following components:
49+
50+
- Arduino board compatible with the %SIM900 Shield.
51+
- %SIM900 Shield with a SIM card inserted.
52+
- 3V CR1220 coin battery for RTC (optional).
53+
54+
Connect the %SIM900 Shield to your Arduino board, ensuring it's properly powered and connected. Refer to your hardware documentation for detailed instructions on connecting the module.
55+
56+
## Usage
57+
58+
To use the %SIM900 module in your Arduino sketch:
59+
60+
```cpp
61+
#include <SoftwareSerial.h>
62+
#include <sim900.h>
63+
64+
SoftwareSerial shieldSerial(7, 8); //RX and TX
65+
66+
void setup() {
67+
Serial.begin(9600); // Initialize serial communication
68+
SIM900 sim900(&shieldSerial); // Initialize the SIM900 shield
69+
70+
// Your code goes here...
71+
}
72+
73+
void loop() { }
74+
```
75+
76+
## Examples
77+
78+
The repository includes a variety of example sketches that demonstrate the library's features. You can find them in the [examples](https://github.com/nthnn/SIM900/tree/main/examples) folder.
79+
80+
## Contribution and Feedback
81+
82+
Contributions and feedback are all welcome to enhance this library. If you encounter any issues, have suggestions for improvements, or would like to contribute code, please do so.
83+
84+
## Credits
85+
86+
- The %SIM900 vector image above was from a [Fritzing](https://fritzing.org) part, found at [https://forum.fritzing.org/t/sim900-part-request/17688](https://forum.fritzing.org/t/sim900-part-request/17688).
87+
88+
## TODO
89+
90+
1. Receiving, listing, dumping, deleting, and setting the preferred message storage.
91+
2. Functional HTTP requesting.
92+
93+
## License
94+
95+
Copyright 2023 - Nathanne Isip
96+
97+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
98+
99+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
100+
101+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

src/sim900.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
/*
2+
* This file is part of the SIM900 Arduino Shield library.
3+
* Copyright (c) 2023 Nathanne Isip
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
* of this software and associated documentation files (the "Software"), to deal
7+
* in the Software without restriction, including without limitation the rights
8+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
* copies of the Software, and to permit persons to whom the Software is
10+
* furnished to do so, subject to the following conditions:
11+
*
12+
* The above copyright notice and this permission notice shall be included in
13+
* all copies or substantial portions of the Software.
14+
*
15+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
* THE SOFTWARE.
22+
*/
23+
124
#include <sim900.h>
225
#include <SoftwareSerial.h>
326

0 commit comments

Comments
 (0)