Skip to content

Commit

Permalink
wip:
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bierbrauer authored and Alexander Bierbrauer committed Dec 9, 2015
1 parent 21528ea commit fe8a0ca
Show file tree
Hide file tree
Showing 78 changed files with 25,732 additions and 25,731 deletions.
38 changes: 19 additions & 19 deletions .gitignore
@@ -1,19 +1,19 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all logfiles and tempfiles.
/web/log/*
!/web/log/.keep
/web/tmp
/web/db/easy_race_lap_timer.sqlite3
web/public/uploads/
web/public/assets
web/node_modules
*.o
moc_*
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all logfiles and tempfiles.
/web/log/*
!/web/log/.keep
/web/tmp
/web/db/easy_race_lap_timer.sqlite3
web/public/uploads/
web/public/assets
web/node_modules
*.o
moc_*
Expand Up @@ -22,7 +22,7 @@

// CHANGE HERE THE ID OF TRANSPONDER
// possible values are 1 to 63
#define TRANSPONDER_ID 12
#define TRANSPONDER_ID 5



Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -22,6 +22,8 @@ What you get with EasyRaceLaptimer:
* sound effects for various events in a race
* TCP/IP and serial connections support for receiving lap times and commands from other time tracking systems
* export race events to spreadsheets
* standard practice/ time trial mode
* competition mode for racing events with time penalties (satellites needed)
* and much more comming soon

**Important notices**
Expand Down
164 changes: 82 additions & 82 deletions displayotron_info_server/main.py
@@ -1,82 +1,82 @@
import socket
import sys
import dothat.backlight as backlight
import dothat.lcd as lcd
import dothat.touch as j
import time
import math
import signal

TCP_IP = '127.0.0.1'
TCP_PORT = 3007
BUFFER_SIZE = 1024
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))



backlight.graph_off()
backlight.graph_set_led_duty(0, 1)
lcd.clear()
lcd.set_cursor_position(0, 0)
lcd.write("EasyRaceLapTimer")


@j.on(j.UP)
def handle_up(ch, evt):
print("Up pressed!")
lcd.clear()
backlight.rgb(255, 0, 0)
lcd.write("Up up and away!")


@j.on(j.DOWN)
def handle_down(ch, evt):
print("Down pressed!")
lcd.clear()
backlight.rgb(0, 255, 0)
lcd.write("Down down doobie down!")


@j.on(j.LEFT)
def handle_left(ch, evt):
print("Left pressed!")
lcd.clear()
backlight.rgb(0, 0, 255)
lcd.write("Leftie left left!")


@j.on(j.RIGHT)
def handle_right(ch, evt):
print("Right pressed!")
lcd.clear()
backlight.rgb(0, 255, 255)
lcd.write("Rightie tighty!")


@j.on(j.BUTTON)
def handle_button(ch, evt):
print("Button pressed!")
lcd.clear()
backlight.rgb(255, 255, 255)
lcd.write("Ouch!")


@j.on(j.CANCEL)
def handle_cancel(ch, evt):
print("Cancel pressed!")
lcd.clear()
backlight.rgb(0, 0, 0)
lcd.write("Boom!")



while True:
data = s.recv(BUFFER_SIZE)

if str.find(data,"#") != -1:
data = data.replace("#","").replace("\n","")
list= data.split(" ",5)
if list[0] == "NEW_LAP_TIME":
lcd.set_cursor_position(0, 1)
lcd.write(list[1]+ " " + str(float(list[2]) / 1000)+"secs")
import socket
import sys
import dothat.backlight as backlight
import dothat.lcd as lcd
import dothat.touch as j
import time
import math
import signal

TCP_IP = '127.0.0.1'
TCP_PORT = 3007
BUFFER_SIZE = 1024
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))



backlight.graph_off()
backlight.graph_set_led_duty(0, 1)
lcd.clear()
lcd.set_cursor_position(0, 0)
lcd.write("EasyRaceLapTimer")


@j.on(j.UP)
def handle_up(ch, evt):
print("Up pressed!")
lcd.clear()
backlight.rgb(255, 0, 0)
lcd.write("Up up and away!")


@j.on(j.DOWN)
def handle_down(ch, evt):
print("Down pressed!")
lcd.clear()
backlight.rgb(0, 255, 0)
lcd.write("Down down doobie down!")


@j.on(j.LEFT)
def handle_left(ch, evt):
print("Left pressed!")
lcd.clear()
backlight.rgb(0, 0, 255)
lcd.write("Leftie left left!")


@j.on(j.RIGHT)
def handle_right(ch, evt):
print("Right pressed!")
lcd.clear()
backlight.rgb(0, 255, 255)
lcd.write("Rightie tighty!")


@j.on(j.BUTTON)
def handle_button(ch, evt):
print("Button pressed!")
lcd.clear()
backlight.rgb(255, 255, 255)
lcd.write("Ouch!")


@j.on(j.CANCEL)
def handle_cancel(ch, evt):
print("Cancel pressed!")
lcd.clear()
backlight.rgb(0, 0, 0)
lcd.write("Boom!")



while True:
data = s.recv(BUFFER_SIZE)

if str.find(data,"#") != -1:
data = data.replace("#","").replace("\n","")
list= data.split(" ",5)
if list[0] == "NEW_LAP_TIME":
lcd.set_cursor_position(0, 1)
lcd.write(list[1]+ " " + str(float(list[2]) / 1000)+"secs")
1 change: 0 additions & 1 deletion docs/update.md
Expand Up @@ -4,7 +4,6 @@ Instructions for updating to the next stable version. After updating the system,

# updating from v0.3 to v0.4

sudo apt-get install wkhtmltopdf
cd ~/EasyRaceLapTimer
git pull origin master

Expand Down

0 comments on commit fe8a0ca

Please sign in to comment.