Skip to content

Instantly share code, notes, and snippets.

View markuskeller1960's full-sized avatar

Markus Keller markuskeller1960

View GitHub Profile
@markuskeller1960
markuskeller1960 / tomcat
Last active August 29, 2015 14:24
Startup script für Apache Tomcat under Raspbian
#!/bin/sh
#
# /etc/init.d/tomcat -- startup script for the Tomcat 8 servlet engine
#
# Modified init-Script from 2014 - Sebastian Mogilowski - http://www.mogilowski.net
#
# 2015 - Markus Keller
#
### BEGIN INIT INFO
# Provides: tomcat
@markuskeller1960
markuskeller1960 / Led.java
Last active August 29, 2015 14:23
The Button class controls a button on a raspberry PI board using Pi4J. In the observer pattern this class represents the subject.
/**
* The Led class controls a LED on a raspberry PI board using
* Pi4J. In the observer pattern this class represents the subject.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@markuskeller1960
markuskeller1960 / ButtonLedController.java
Created June 27, 2015 14:28
The ButtonLedController class acts a an controller for the components (model) classes Led and Button that control components on a raspberry PI board. In the Observer pattern this class represents the observer.
/**
* The ButtonLedController class acts a an controller for the components
* (model) classes Led and Button that control components on a raspberry PI
* board. In the Observer pattern this class represents the observer.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@markuskeller1960
markuskeller1960 / ButtonLedController.java
Last active August 29, 2015 14:23
The ButtonLedController class implements an application that controls a input pin on a Raspberry PI platform to regulate a LED by a button on the board with Pi4J.
/**
* The ButtonLedController program implements an application that
* controls a input pin on a Raspberry PI platform to regulate
* a LED by a button on the board. If the button is
* pressed, the LED changes its state (on/off).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@markuskeller1960
markuskeller1960 / BlinkingLED.java
Created June 21, 2015 16:47
A blinking LED for raspberry PI with Pi4J
/**
* The BlinkingLED program implements an application that
* controls a pin on a Raspberry PI platform to regulate
* a simple LED.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@markuskeller1960
markuskeller1960 / HelloWorld.java
Last active August 29, 2015 14:23
Raspberry PI und Java ME
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.