Skip to content

Commit 0bb6931

Browse files
author
Charles Weir
committed
Added copyright notices.
1 parent b1f3270 commit 0bb6931

20 files changed

Lines changed: 54 additions & 39 deletions

BrickPython/BrickPiWrapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
21
# Wrapper class for the BrickPi() structure provided with the installation.
2+
#
3+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
4+
35
from Motor import Motor
46
from Sensor import Sensor
57
from BrickPi import *

BrickPython/CommandLineApplication.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CommandLineApplication class. Provides a dummy scheduler for BrickPiWrapper.
22
# Applications using the BrickPi derive from this, implementing appropriate functionality.
3-
3+
#
4+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
45

56
import Tkinter as tk
67

BrickPython/Motor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
21
# Motor and associated classes, representing a motor attached to one of the BrickPi ports.
2+
#
3+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
34

45
from Scheduler import Scheduler
56
import logging

BrickPython/Scheduler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# Scheduler
2+
# Support for coroutines using Python generator functions.
3+
#
4+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
15

2-
# Scheduler. To be called repeatedly by the UI or other framework.
36
import datetime
47

58
class StopCoroutineException( Exception ):

BrickPython/Sensor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Sensor class
1+
# Sensor - represents a single value sensor supported by the BrickPython library
2+
#
3+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
24

35
#TODO: Remove need for clients to import * from BrickPython by
46
# getting rid of the use of PORT_* values in the interfaces,

BrickPython/TkApplication.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# TkApplication class. Brings together the Tk GUI functionality, the Scheduler and the BrickPi wrapper.
1+
# TkApplication class. Superclass for applications using the Tkinter framework
2+
#
23
# Applications using the BrickPi derive from this, implementing appropriate functionality.
3-
4+
#
5+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
46

57
import Tkinter as tk
68

ExamplePrograms/DoorControl.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# James and Charles Weir
2-
1+
# DoorControlApp
2+
# Example application to detect using a proximity sensor and open, close a door.
3+
#
4+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
35

46
import sortOutPythonPaths
57
from BrickPython.TkApplication import *

ExamplePrograms/MotorController.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# James and Charles Weir
1+
# Motor Controller
2+
# Example application for using motors.
3+
#
4+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
25

36
import sortOutPythonPaths
47
from BrickPython.TkApplication import *

ExamplePrograms/SimpleApp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Simple example application for BrickPython.
2-
1+
# Very simple example application for BrickPython.
2+
#
3+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
34

45
import sortOutPythonPaths
56
from BrickPython.CommandLineApplication import *

ExamplePrograms/sortOutPythonPaths.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# sortOutPythonPaths
2+
#
3+
# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
4+
15
'''
26
Horrible bit of munging to persuade Python to look for modules on directories above us.
37
Only necessary when not installed as a package.
48
5-
See the (last) Sept 10 2012 comment on http://as.ynchrono.us/2007/12/filesystem-structure-of-python-project_21.html
6-
@author: charles
9+
See the (last) Sept 10 2012 comment on http://as.ynchrono.us/2007/12/filesystem-structure-of-python-project_21.html
710
'''
811

912
import sys, os

0 commit comments

Comments
 (0)