This article is for my hackaday.io project (BYOP).
https://hackaday.io/project/9526-bring-your-own-pizero-byop
Setup
Here's how to prepare the programs (FileMessenger and BYOP)
FileMessenger
Clone
You can clone from the git repository.
$ cd
$ pwd
/home/pi
$ git clone https://github.com/yasokada/python-160227-FileMessenger.git
Cloning into 'python-160227-FileMessenger'...
remote: Counting objects: 14, done.
remote: Total 14 (delta 0), reused 0 (delta 0), pack-reused 14
Unpacking objects: 100% (14/14), done.
Checking connectivity... done.
Change mode
It is advised to add "execute" mode to the main script.
$ cd python-160227-FileMessenger
$ ls
FileMessenger.py LICENSE
$ chmod +x FileMessenger.py
$ ls -lrt
total 8
-rw-r--r-- 1 pi pi 1067 Mar 12 08:22 LICENSE
-rwxr-xr-x 1 pi pi 1096 Mar 12 08:22 FileMessenger.py
BYOP
Clone
You can clone from the git repository.
$ cd
$ pwd
/home/pi
$ git clone https://github.com/yasokada/python-160224-BYOP-main.git
Cloning into 'python-160224-BYOP-main'...
remote: Counting objects: 112, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 112 (delta 14), reused 0 (delta 0), pack-reused 85
Receiving objects: 100% (112/112), 17.24 KiB | 0 bytes/s, done.
Resolving deltas: 100% (38/38), done.
Checking connectivity... done.
Change mode
It is advised to add "execute" mode to the main script.
$ cd python-160224-BYOP-main/
$ ls
BYOP-main.py dummySerial.py LICENSE toLearn
$ chmod +x BYOP-main.py
$ ls -lrt
total 20
drwxr-xr-x 2 pi pi 4096 Mar 12 08:26 toLearn
-rw-r--r-- 1 pi pi 1067 Mar 12 08:26 LICENSE
-rw-r--r-- 1 pi pi 625 Mar 12 08:26 dummySerial.py
-rwxr-xr-x 1 pi pi 7965 Mar 12 08:26 BYOP-main.py