Patrick is away from his Desk A0>1000
Office Lights are detected as being on A5>200
Current humdity is 33.0%
Current temperature is 69.0F
Debug:
analog input 0 is 36
analog input 1 is 150
analog input 2 is 224
analog input 3 is 259
analog input 4 is 300
analog input 5 is 185
1 minute auto refresh
Arduino POE Ethernet
Simplytronics Wide Angle PIR
Parallax 4x30 LCD
KY015 DHT11 Temperature and humidity sensor
Live: http://96.88.231.122
Source Code: https://github.com/insidenothing/arduino/blob/master/POEserver/POEserver.ino
Thursday, July 16, 2015
anyBBS Dialup to Telnet Launcher v0.1
/bbs/getty.sh
/usr/bin/expect
set timeout 20
set userName [lindex $argv 0]
spawn telnet localhost
expect "Login: "
send "$userName\r"
interact
/etc/mgetty/login.config
* - - /sbbs/getty.sh @
/etc/mgetty/mgetty.config
debug 4
fax-id
speed 38400
issue-file /etc/issue.mgetty
port ttyACM0
debug 8
init-chat "" AT OK
/etc/issue.mgetty
anyBBS Dialup to Telnet Launcher v0.1 on \P at \S (\I)
Enter User Name or Number or 'New'
/etc/systemd/system/getty.target.wants/getty@ttyACM0.service
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
ConditionPathExists=/dev/tty0
[Service]
ExecStart=-/sbin/mgetty -n 2 ttyACM0
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
[Install]
WantedBy=getty.target
DefaultInstance=ttyACM0
/etc/systemd/system/getty.target.wants/getty@ttyACM0.service
[Unit]
Description=Getty on %I
Documentation=man:agetty(8) man:systemd-getty-generator(8)
Documentation=http://0pointer.de/blog/projects/serial-console.html
After=systemd-user-sessions.service plymouth-quit-wait.service
After=rc-local.service
Before=getty.target
IgnoreOnIsolate=yesConditionPathExists=/dev/tty0
[Service]
ExecStart=-/sbin/mgetty -n 2 ttyACM0
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
[Install]
WantedBy=getty.target
DefaultInstance=ttyACM0
SainSmart 3.5 inch TFT LCD 320*480 Touch Screen Display for Raspberry Pi 2 B+/B DE Lager
LCD Type
|
TFT
|
LCD Interface
|
SPI
|
Touch Screen Type
|
Resistive
|
Touch Screen Controller
|
XPT2046
|
Colors
|
65536
|
Backlight
|
LED
|
Resolution
|
320*480 (Pixel)
|
Aspect Ratio
|
2:03
|
Power Consumption
|
TBD
|
Backlight Current
|
TBD
|
Operating Temp. (℃)
|
TBD
|
Interface
PIN NO.
|
SYMBOL
|
DESCRIPTION
|
1, 17
|
3.3V
|
Power positive (3.3V power input)
|
2, 4
|
5V
|
Power positive (5V power input)
|
3, 5, 7, 8, 10, 12, 13, 15, 16
|
NC
|
NC
|
6, 9, 14, 20, 25
|
GND
|
Ground
|
11
|
TP_IRQ
|
Touch Panel interrupt, low level while the Touch Panel detects touching
|
18
|
LCD_RS
|
Instruction/Data Register selection
|
19
|
LCD_SI / TP_SI
|
SPI data input of LCD/Touch Panel
|
21
|
TP_SO
|
SPI data output of Touch Panel
|
22
|
RST
|
Reset
|
23
|
LCD_SCK / TP_SCK
|
SPI clock of LCD/Touch Panel
|
24
|
LCD_CS
|
LCD chip selection, low active
|
26
|
TP_CS
|
Touch Panel chip selection, low active
|
Here are the key values, i have not tested on the current distro, these came from the rpi2 image at sainsmart for this display.
/etc/modules
i2c-bcm2708
i2c-dev
flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3
fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24
ads7846_device model=7846 cs=1 gpio_pendown=17 keep_vref_on=1 swap_xy=1 pressure_max=255 x_plate_ohms=60 x_min=200 x_max=3900 y_min=200 y_max=3900
/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo
Subscribe to:
Posts (Atom)