Skip to content

Commit 99359c2

Browse files
authored
Merge pull request #4 from bboyho/master
Correct Pin in Graphical Datasheet and Update Repo
2 parents aa76c43 + 33e6a31 commit 99359c2

File tree

9 files changed

+221
-18
lines changed

9 files changed

+221
-18
lines changed
474 KB
Binary file not shown.

Documentation/ProMicro16MHzv1.svg renamed to Documentation/ProMicro16MHzv2.svg

Lines changed: 8 additions & 6 deletions
Loading
482 KB
Binary file not shown.

Documentation/ProMicro8MHzv1.svg renamed to Documentation/ProMicro8MHzv2.svg

Lines changed: 8 additions & 6 deletions
Loading

Firmware/Blinkies/Blinkies.ino

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* Pro Micro Test Code
2+
by: Nathan Seidle
3+
modified by: Jim Lindblom
4+
SparkFun Electronics
5+
date: September 16, 2013
6+
license: Public Domain - please use this code however you'd like.
7+
It's provided as a learning tool.
8+
9+
This code is provided to show how to control the SparkFun
10+
ProMicro's TX and RX LEDs within a sketch. It also serves
11+
to explain the difference between Serial.print() and
12+
Serial1.print().
13+
*/
14+
15+
int RXLED = 17; // The RX LED has a defined Arduino pin
16+
// The TX LED was not so lucky, we'll need to use pre-defined
17+
// macros (TXLED1, TXLED0) to control that.
18+
// (We could use the same macros for the RX LED too -- RXLED1,
19+
// and RXLED0.)
20+
21+
void setup()
22+
{
23+
pinMode(RXLED, OUTPUT); // Set RX LED as an output
24+
// TX LED is set as an output behind the scenes
25+
26+
Serial.begin(9600); //This pipes to the serial monitor
27+
Serial1.begin(9600); //This is the UART, pipes to sensors attached to board
28+
}
29+
30+
void loop()
31+
{
32+
Serial.println("Hello world"); // Print "Hello World" to the Serial Monitor
33+
Serial1.println("Hello!"); // Print "Hello!" over hardware UART
34+
35+
digitalWrite(RXLED, LOW); // set the RX LED ON
36+
TXLED0; //TX LED is not tied to a normally controlled pin so a macro is needed, turn LED OFF
37+
delay(1000); // wait for a second
38+
39+
digitalWrite(RXLED, HIGH); // set the RX LED OFF
40+
TXLED1; //TX LED macro to turn LED ON
41+
delay(1000); // wait for a second
42+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/* HID Joystick Mouse Example
2+
by: Jim Lindblom
3+
date: 1/12/2012
4+
license: MIT License - Feel free to use this code for any purpose.
5+
No restrictions. Just keep this license if you go on to use this
6+
code in your future endeavors! Reuse and share.
7+
8+
This is very simplistic code that allows you to turn the
9+
SparkFun Thumb Joystick (http://www.sparkfun.com/products/9032)
10+
into an HID Mouse. The select button on the joystick is set up
11+
as the mouse left click.
12+
*/
13+
#include <Mouse.h>
14+
int horzPin = A0; // Analog output of horizontal joystick pin
15+
int vertPin = A1; // Analog output of vertical joystick pin
16+
int selPin = 9; // select button pin of joystick
17+
18+
int vertZero, horzZero; // Stores the initial value of each axis, usually around 512
19+
int vertValue, horzValue; // Stores current analog output of each axis
20+
const int sensitivity = 200; // Higher sensitivity value = slower mouse, should be <= about 500
21+
int mouseClickFlag = 0;
22+
23+
void setup()
24+
{
25+
pinMode(horzPin, INPUT); // Set both analog pins as inputs
26+
pinMode(vertPin, INPUT);
27+
pinMode(selPin, INPUT); // set button select pin as input
28+
digitalWrite(selPin, HIGH); // Pull button select pin high
29+
delay(1000); // short delay to let outputs settle
30+
vertZero = analogRead(vertPin); // get the initial values
31+
horzZero = analogRead(horzPin); // Joystick should be in neutral position when reading these
32+
33+
}
34+
35+
void loop()
36+
{
37+
vertValue = analogRead(vertPin) - vertZero; // read vertical offset
38+
horzValue = analogRead(horzPin) - horzZero; // read horizontal offset
39+
40+
if (vertValue != 0)
41+
Mouse.move(0, vertValue/sensitivity, 0); // move mouse on y axis
42+
if (horzValue != 0)
43+
Mouse.move(horzValue/sensitivity, 0, 0); // move mouse on x axis
44+
45+
if ((digitalRead(selPin) == 0) && (!mouseClickFlag)) // if the joystick button is pressed
46+
{
47+
mouseClickFlag = 1;
48+
Mouse.press(MOUSE_LEFT); // click the left button down
49+
}
50+
else if ((digitalRead(selPin))&&(mouseClickFlag)) // if the joystick button is not pressed
51+
{
52+
mouseClickFlag = 0;
53+
Mouse.release(MOUSE_LEFT); // release the left button
54+
}
55+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/* HID KeyBoard Example
2+
by: Jim Lindblom
3+
date: 1/12/2012
4+
license: MIT License - Feel free to use this code for any purpose.
5+
No restrictions. Just keep this license if you go on to use this
6+
code in your future endeavors! Reuse and share.
7+
8+
This is very simplistic code that allows you to send a 'z' with
9+
a momentary pushbutton.
10+
*/
11+
12+
#include <Keyboard.h>
13+
int buttonPin = 9; // Set a button to any pin
14+
15+
void setup()
16+
{
17+
pinMode(buttonPin, INPUT); // Set the button as an input
18+
digitalWrite(buttonPin, HIGH); // Pull the button high
19+
}
20+
21+
void loop()
22+
{
23+
if (digitalRead(buttonPin) == 0) // if the button goes low
24+
{
25+
Keyboard.write('z'); // send a 'z' to the computer via Keyboard HID
26+
delay(1000); // delay so there aren't a kajillion z's
27+
}
28+
}

LICENSE.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
SparkFun License Information
2+
============================
3+
4+
SparkFun uses two different licenses for our files — one for hardware and one for code.
5+
6+
Hardware
7+
---------
8+
9+
**SparkFun hardware is released under [Creative Commons Share-alike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/).**
10+
11+
Note: This is a human-readable summary of (and not a substitute for) the [license](http://creativecommons.org/licenses/by-sa/4.0/legalcode).
12+
13+
You are free to:
14+
15+
Share — copy and redistribute the material in any medium or format
16+
Adapt — remix, transform, and build upon the material
17+
for any purpose, even commercially.
18+
The licensor cannot revoke these freedoms as long as you follow the license terms.
19+
Under the following terms:
20+
21+
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
22+
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
23+
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
24+
Notices:
25+
26+
You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.
27+
No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.
28+
29+
30+
Code
31+
--------
32+
33+
**SparkFun code, firmware, and software is released under the MIT License(http://opensource.org/licenses/MIT).**
34+
35+
The MIT License (MIT)
36+
37+
Copyright (c) 2016 SparkFun Electronics
38+
39+
Permission is hereby granted, free of charge, to any person obtaining a copy
40+
of this software and associated documentation files (the "Software"), to deal
41+
in the Software without restriction, including without limitation the rights
42+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43+
copies of the Software, and to permit persons to whom the Software is
44+
furnished to do so, subject to the following conditions:
45+
46+
The above copyright notice and this permission notice shall be included in all
47+
copies or substantial portions of the Software.
48+
49+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55+
SOFTWARE.

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
Pro Micro
22
=========
33

4-
![Pro Micro 5V](https://cdn.sparkfun.com//assets/parts/9/3/2/6/12640-01a.jpg)
5-
6-
[*Pro Micro 5V (DEV-12640)*](https://www.sparkfun.com/products/12640)
7-
4+
<table class="table table-hover table-striped table-bordered">
5+
<tr>
6+
<td><a href="https://www.sparkfun.com/products/12587"><div align="center"><img src="https://cdn.sparkfun.com//assets/parts/9/2/4/9/12587-01b.jpg" title="Pro Micro - 3.3V/8MHz"></div></a></td>
7+
<td><a href="https://www.sparkfun.com/products/12640"><img src="https://cdn.sparkfun.com//assets/parts/9/3/2/6/12640-01a.jpg"" title="Pro Micro - 5V/16MHz"></div></a></center></td>
8+
</tr>
9+
<tr>
10+
<td><div align="center">Pro Micro - 3.3V/8MHz [<a href="https://www.sparkfun.com/products/12587">DEV-12587</a>]</div></td>
11+
<td><div align="center">Pro Micro - 5V/16MHz [<a href="https://www.sparkfun.com/products/12640">DEV-12640</a>]</div></td>
12+
</tr>
13+
</table>
814

915
The Pro Micro is a micro controller with an ATMega32U4 IC on board.
1016
The USB transceiver is inside the 32U4, adding USB connectivity on-board without external USB interfaces.
@@ -14,9 +20,15 @@ This comes in both a 3.3V and 5V version.
1420
Repository Contents
1521
-------------------
1622
* **/Documentation** - Data sheets (.pdf and .svg)
23+
* **/Firmware** - Arduino example code used in the hookup guide
1724
* **/Hardware** - All Eagle design files (.brd, .sch, .STL)
1825
* **/Production** - Test bed files and production panel files
1926

27+
Documentation
28+
--------------
29+
* **[Hookup Guide](https://learn.sparkfun.com/tutorials/pro-micro--fio-v3-hookup-guide)** - Basic hookup guide for the Pro Micro.
30+
* **[SparkFun Arduino Board Addon](https://github.com/sparkfun/Arduino_Boards/)** - Arduino board addon for Pro Micro.
31+
* **[SparkFun Graphical Datasheets](https://github.com/sparkfun/Graphical_Datasheets)** - Graphical datasheets for various SparkFun products.
2032

2133
Product Versions
2234
----------------
@@ -25,7 +37,14 @@ Product Versions
2537

2638
License Information
2739
-------------------
28-
The hardware is released under [Creative Commons ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/).
29-
The code is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!
40+
This product is _**open source**_!
41+
42+
Please review the LICENSE.md file for license information.
43+
44+
If you have any questions or concerns on licensing, please contact [email protected].
3045

3146
Distributed as-is; no warranty is given.
47+
48+
- Your friends at SparkFun.
49+
50+
_<COLLABORATION CREDIT>_

0 commit comments

Comments
 (0)