Skip to content

Commit

Permalink
v0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joan2937 committed Nov 12, 2020
0 parents commit f7e6813
Show file tree
Hide file tree
Showing 197 changed files with 50,676 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CFG/.lg_secret
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# lg user file
# user=password
admin=kr6g89XmFQvLDWh6UcJH
test1=fARrxSKqdHaPHBu6Vtet
test2=t4pf4kvPOXjLfDnKBrMu
test3=tugXUuRdPqGux6t7jhhv

Empty file added CFG/cgi/.git-dummy
Empty file.
53 changes: 53 additions & 0 deletions CFG/permits
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# rgpiod test file for user access
# user=permission

[files]
default=:
test1=/tmp/* u:* n:file* r:test.file u:/sys/bus/w1/devices/28*/w1_slave r

[gpio]
default=0.2-27
test1=*.2-27
test2=0.2-27
test3=0.5-10

[i2c]
default=1.*
test1=1-999.*
test2=1-2.*
test3=2.5-20

[notify]
default=n
test1=n
test2=y
test3=y

[scripts]
default=n
test1=y
test2=n
test3=y

[serial]
default=serial0
test1=serial*:ttyUSB*:ttyS*
test2=ttyUSB1:tty0:ttyS0
test3=null

[spi]
default=0.*
test1=0.0:0.1:1.0:1.1:1.2:2.0:2.1
test2=0.*
test3=*.0

[debug]
default=n
admin=y

[shell]
default=n
test1=n
test2=n
test3=y

Binary file added DOC/HTML/images/LDR-fritz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/LDR-gnup-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/LDR-gnup-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/LDR-photo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/LDR-wave-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/LDR-wave-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/LDR-wave-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/breadboard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/caps.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/driver.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/faq-i2c-ss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/faq-i2c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/faq-serial.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/faq-spi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/faq1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/faq2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/faq3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/imu-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/imu-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/imu-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/ir-fritz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/ir-motion.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/ir-photo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/ir-rx.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/ir-wave-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DOC/HTML/images/ir-wave-2.png
Binary file added DOC/HTML/images/ir-wave-3.png
Binary file added DOC/HTML/images/keypad.jpg
Binary file added DOC/HTML/images/lcd.jpg
Binary file added DOC/HTML/images/ldr-cap.jpg
Binary file added DOC/HTML/images/ldr.jpg
Binary file added DOC/HTML/images/leds.jpg
Binary file added DOC/HTML/images/lg-logo.gif
Binary file added DOC/HTML/images/meter.jpg
Binary file added DOC/HTML/images/motor.jpg
Binary file added DOC/HTML/images/msp430.jpg
Binary file added DOC/HTML/images/nano.jpg
Binary file added DOC/HTML/images/oled-2.jpg
Binary file added DOC/HTML/images/oled.jpg
Binary file added DOC/HTML/images/pins.jpg
Binary file added DOC/HTML/images/pisc-1.jpg
Binary file added DOC/HTML/images/pisc-2.jpg
Binary file added DOC/HTML/images/pisc-3.jpg
Binary file added DOC/HTML/images/pot.jpg
Binary file added DOC/HTML/images/pro-mini.jpg
Binary file added DOC/HTML/images/psu.jpg
Binary file added DOC/HTML/images/re-fritz.png
Binary file added DOC/HTML/images/re-photo.jpg
Binary file added DOC/HTML/images/re-wave-1.png
Binary file added DOC/HTML/images/re-wave-2.png
Binary file added DOC/HTML/images/remote-1.jpg
Binary file added DOC/HTML/images/remote-2.jpg
Binary file added DOC/HTML/images/reverse.jpg
Binary file added DOC/HTML/images/rf-rx-2.jpg
Binary file added DOC/HTML/images/rf-rx.jpg
Binary file added DOC/HTML/images/rf-tx.jpg
Binary file added DOC/HTML/images/rotary.jpg
Binary file added DOC/HTML/images/rpi.jpg
Binary file added DOC/HTML/images/serial.jpg
Binary file added DOC/HTML/images/servo.jpg
Binary file added DOC/HTML/images/sidebar.gif
Binary file added DOC/HTML/images/son-fritz.png
Binary file added DOC/HTML/images/son-gnup-1.png
Binary file added DOC/HTML/images/son-gnup-2.png
Binary file added DOC/HTML/images/son-photo.jpg
Binary file added DOC/HTML/images/son-wave-1.png
Binary file added DOC/HTML/images/son-wave-2.png
Binary file added DOC/HTML/images/son-wave-3.png
Binary file added DOC/HTML/images/son-wave-4.png
Binary file added DOC/HTML/images/speaker.jpg
Binary file added DOC/HTML/images/spi-lnx-pi3b.png
Binary file added DOC/HTML/images/spi-lnx-pibr1.png
Binary file added DOC/HTML/images/spi-pig-pi3b.png
Binary file added DOC/HTML/images/spi-pig-pibr1.png
Binary file added DOC/HTML/images/srf02.jpg
Binary file added DOC/HTML/images/srf04.jpg
Binary file added DOC/HTML/images/stepper.jpg
Binary file added DOC/HTML/images/switches.jpg
Binary file added DOC/HTML/images/topbar.gif
Binary file added DOC/HTML/images/transistors.jpg
Binary file added DOC/HTML/images/ubec-2.jpg
Binary file added DOC/HTML/images/uln2003a.jpg
Binary file added DOC/HTML/images/wheel.jpg
Binary file added DOC/HTML/images/wires.jpg
Binary file added DOC/HTML/images/yl-40.jpg
52 changes: 52 additions & 0 deletions DOC/HTML/scripts/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
body
{
font-size: 100%;
font-family: Arial, Helvetica, sans-serif;
color: #101010;
margin-left: 1%; margin-right: 10%;
}

h1 {font-size: 2.4em; color: #5d9dce; font-weight: bold;}
h2 {font-size: 1.8em; color: #5d9dce; font-weight: bold;}
h3 {font-size: 1.4em; color: #5d9dce; font-weight: bold;}
h4 {font-size: 1.2em; color: #5d9dce;}
h5 {font-size: 1.0em; color: #5d9dce;}
h6 {font-size: 0.8em; color: #5d9dce;}

code {display:block;font-size:80%; font-family: "Courier New", Courier, monospace; background-color:#D0D0D0;}
pre {font-size:80%; font-family: Courier; background-color:#D0D020;}

table.ev
{
border: 3px solid green;
}

td.ev1
{
width: 200px;
border: 1px solid green;
}

td.ev2
{
border: 1px solid green;
}

a.l1:link,a.l1:visited
{
display:block;
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
width:120px;
text-align:center;
padding:4px;
text-decoration:none;
}

a.l1:hover,a.l1:active
{
background-color:#7A991A;
}


3 changes: 3 additions & 0 deletions DOC/HTML/scripts/standard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
html { height: 100% }
body { height: 100%; margin: 0px; padding: 0px }
#map_canvas { height: 100% }
16 changes: 16 additions & 0 deletions DOC/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bin various scripts to generate man pages and HTML

dbase defines the structure of the web documentation

HTML auto generated html web site

makedoc run to regenerate documentation

MAN auto generated man pages

src/defs edit to change lgs, lgd, lg2vcd, and examples docs

src/html edit to change the fairly invariant web pages
DO NOT ADD auto generated HTML to this directory

tmp stores temporary files, may be deleted
5 changes: 5 additions & 0 deletions DOC/bin/backup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# backup database
cp dbase/lg.sqlite dbase/lg.sqlite.bak

14 changes: 14 additions & 0 deletions DOC/bin/body.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env python3

import glob

for fn in glob.glob("src/html/*.html"):
f = open(fn)
h = f.read()
f.close()
s1,d1,e1=h.partition("<body>")
s2,d2,e2=e1.partition("</body>")
f = open("tmp/body/" + fn[9:-5] + ".body", "w")
f.write(s2)
f.close()

21 changes: 21 additions & 0 deletions DOC/bin/build_site.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3

import os
import sqlite3

db=sqlite3.connect("dbase/lg.sqlite")

c=db.cursor()

c.execute("select file_name from lg")

names = c.fetchall()

for n in names:
os.system("bin/html.py {0} >HTML/{0}.html".format(n[0]))
print(n[0])

c.close()

db.close()

Loading

0 comments on commit f7e6813

Please sign in to comment.