/****************************************************************************
LCD-AVR-4d.c - Use an HD44780U based LCD with an Atmel ATmega processor
Copyright (C) 2013 Donald Weiman (weimandn@alfredstate.edu)
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 hjSoftware 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
By admin, 12 March, 2021
To enable ntp in rasberry pi use the following command:
pi@raspberrypi:~ $ sudo timedatectl set-ntp true
Â

Â
By admin, 8 March, 2021
/****************************************************************************
LCD-AVR-4d.c - Use an HD44780U based LCD with an Atmel ATmega processor
Copyright (C) 2013 Donald Weiman (weimandn@alfredstate.edu)
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 A
By admin, 5 March, 2021
self.play_wh = QImage(QPixmap("icon/play_white.png"))
self.pause_wh = QImage(QPixmap("icon/pause_white.png"))
self.light_bulb = QImage(QPixmap("icon/light-bulb.png"))
self.ot_light = QImage(QPixmap("icon/lights.png"))
self.on_speaker = QImage(QPixmap("icon/speaker-on-white.png"))
self.off_speaker = QImage(QPixmap("icon/speaker-off-white.png"))
play_qpixmap_image = self.changedQPixMapColorImage(self.play_wh)
pause_qpixmap_image = self.changedQPixMapColorImage(self.pause_
By admin, 22 February, 2021
 Force the screen to stay on
sudo nano /etc/lightdm/lightdm.conf
 Add the following lines to the [SeatDefaults] section:
# don't sleep the screen
xserver-command=X -s 0 dpms
Â
in the SeatDefaults section it gives the command for starting the X server which I modified to get it to turn off the screen saver as well as dpms
[SeatDefaults]
xserver-command=X -s 0 -dpms
That worked well for me - no more blank screen!
By admin, 16 February, 2021
pi@raspberrypi:~ $ python3 -m compileall DigilineSystem-master
Listing 'DigilineSystem-master'...
Compiling 'DigilineSystem-master/mediaplayer/mediaplayer/mediaplayer.py'...
Compiling 'DigilineSystem-master/mediaplayer/mediaplayer/test.py'...
Compiling 'DigilineSystem-master/player-ori.py'...
Compiling 'DigilineSystem-master/pytqtgraphLive.py'...
Compiling 'DigilineSystem-master/qt-stop-watch.py'...
Compiling 'DigilineSystem-master/realtimepyqtgraph.py'...
Compiling 'DigilineSystem-master/serialDataTXRX (copy 1).py'...
Compiling 'DigilineSystem-master/serialDa
By admin, 14 February, 2021
create a python code like that
Â
nepyx.py
def test(x):
print(str(x))
To work with cython rename this nepyx.py file to nepyx.pyx extension file.
Now to compile to this .pyx file to c code create an setup.py file like this
setup.py
from setuptools import setup
from Cython.Build import cythonize
setup(
ext_modules=cythonize('nepyx.pyx'),
)
Â
By admin, 11 February, 2021
rnjn@kali:~$ sudo ssh pi@192.168.1.5
[sudo] password for rnjn:
ssh: connect to host 192.168.1.5 port 22: Connection refused
rnjn@kali:~$ sudo ssh pi@192.168.1.5
ssh: connect to host 192.168.1.5 port 22: Connection refused
rnjn@kali:~$ sudo ssh pi@192.168.1.5
ssh: connect to host 192.168.1.5 port 22: Connection refused
rnjn@kali:~$ sudo ssh pi@192.168.1.5
ssh: connect to host 192.168.1.5 port 22: Connection refused
rnjn@kali:~$ sudo ssh pi@192.168.1.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
By admin, 10 February, 2021
pi@raspberrypi:~ $ sudo python3 setup.py install --record files.txt
running install
running bdist_egg
running egg_info
writing realpython_reader.egg-info/PKG-INFO
writing dependency_links to realpython_reader.egg-info/dependency_links.txt
writing entry points to realpython_reader.egg-info/entry_points.txt
writing top-level names to realpython_reader.egg-info/top_level.txt
reading manifest file 'realpython_reader.egg-info/SOURCES.txt'
writing manifest file 'realpython_reader.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
creating bu
By admin, 10 February, 2021
pi@raspberrypi:~ $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.8 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [351 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.7 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
Fetched 13.6 MB in 11s (1,262 kB/s)