-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·142 lines (128 loc) · 5.79 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Silverspoon.io - Home of Bulldog Library</title>
<meta name="description" content="Silverspoon.io - Home of Bulldog Library" />
<meta name="keywords" content="java, iot, raspberry pi, beagleboneblack, cubieboard, gpio" />
<meta name="author" content="sbunciak" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<!-- Favicons -->
<link rel="apple-touch-icon" href="img/apple-touch-icon.png">
<link rel="icon" href="img/favicon.ico">
<!-- jQuery -->
<script src="js/jquery.js"></script>
<script src="js/modernizr.custom.js"></script>
<!-- highlight.js -->
<link rel="stylesheet" href="css/hl-github.css">
<script src="js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div class="container">
<div id="splitlayout" class="splitlayout">
<div class="intro">
<div class="side side-left">
<header class="codropsheader clearfix">
<h1>Silverspoon.io</h1>
<nav>
<a href="https://github.com/SilverThings" class="bp-icon bp-icon-github"><span>Github</span></a>
<a href="https://twitter.com/silverwareio" class="bp-icon bp-icon-twitter"><span>Twitter</span></a>
<a href="https://silverwareio.blogspot.com" class="bp-icon bp-icon-blogger"><span>Blogger</span></a>
<a href="mailto:[email protected]" class="bp-icon bp-icon-email"><span>Email</span></a>
</nav>
</header>
<div class="intro-content">
<div class="profile"><img src="img/profile3.jpg" alt="bulldog"></div>
<h1><span>Bulldog</span><span>GPIO library</span></h1>
</div>
<div class="overlay"></div>
</div>
<div class="side side-right">
<div class="intro-content">
<div class="profile"><img src="img/profile4.jpg" alt="bulldog-camel"></div>
<h1><span>Silverspoon </span><span>Integration</span></h1>
</div>
<div class="overlay"></div>
</div>
</div><!-- /intro -->
<div class="page page-right">
<div class="page-inner">
<section>
<h2>Integration</h2>
<p>Silverspoon.io is an open source project and a member of the <a href="http://www.silverware.io" target="_blank">SilverWare</a> family. Aim of this project is to provide users with an easy-to-use development platform for creating complex IoT solutions. </p>
<p>The basic building block of Silverspoon is <a href="http://camel.apache.org">Apache Camel</a>™, a light-weight integration framework based on well known Enterprise Integration Patterns, for which we are providing a pluggable component. With Apache Camel, we are able to easily integrate capabilities of embedded devices with external IT systems, or support rule and event based decision making.</p>
<h2>Example</h2>
<pre>
<code class="html">
<camelContext trace="false" xmlns="http://camel.apache.org/schema/spring">
<restConfiguration bindingMode="auto" component="jetty" port="8080" />
<rest path="/rest">
<post uri="/led">
<to uri="bulldog://gpio?pin=P1_11" />
</post>
</rest>
</camelContext>
</code>
</pre>
<p><a href="http://github.com/SilverThings/silverspoon">Explore More</a></p>
</section>
<!--
<section>
<h2>Next section</h2>
</section>
-->
</div><!-- /page-inner -->
</div><!-- /page-right -->
<div class="page page-left">
<div class="page-inner">
<section>
<h2>Bulldog Library</h2>
<p>It is a Java library providing developers with GPIO and other low-level IO interfaces like I2C, SPI, or PWM. Currently supports various Single Board Computer (SBC) platforms, including Raspberry Pi, BeagleBoneBlack, and CubieBoard.</p>
<p>Bulldog aims to be platform agnostic - to write a single piece of code that can be run on multiple platforms. The only thing that needs to be changed in the following snippet is the string identifier of GPIO pin to work on different SBCs.</p>
<h2>Example</h2>
<pre>
<code class="java">
public class BulldogLED {
public static void main(String[] args) {
// Detect the board we are running on
Board board = Platform.createBoard();
// Set up a digital output
List<Pin> pins = board.getPins();
DigitalOutput output = pins.get(0).as(DigitalOutput.class);
// Blink the LED
output.high();
BulldogUtil.sleepMs(1000);
output.low();
}
}
</code>
</pre>
<a href="https://github.com/SilverThings/bulldog">Explore More</a>
</section>
<!--
<section>
<h2>Next section</h2>
</section>
-->
</div><!-- /page-inner -->
</div><!-- /page-left -->
<a href="#" class="back back-right" title="back to intro">→</a>
<a href="#" class="back back-left" title="back to intro">←</a>
</div><!-- /splitlayout -->
</div><!-- /container -->
<script src="js/classie.js"></script>
<script src="js/cbpSplitLayout.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-58152940-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>