Sunday, March 21, 2021

Pi4j Releases

Note that Pi4j v1.4 relies on Java 11, whcih will cause issues with older models of Raspberry Pis.

Therefore, mosly best to stick to v1.3, and disable the repo in /etc/apt/sources.list.d/pi4j.list

Pi4j v2.0 is next..

Saturday, March 20, 2021

VS Code and Raspberry Pi Zero WH

VS Code Remote Development is fantastic, but it doesn't support the Raspberry Pi Zero as the armv6l isn't supported.

However, this it is possible to mount /home/pi as a Samba share and amend files locally, which will perform similarly (for Python development anyway).

This is described here. Install Samba with:

sudo apt install -y samba

Then add the following to /etc/samba/smb.conf as follows:

[PiShare]
 comment=Pi Share
 path=/home/pi
 browseable=yes
 writeable=yes
 only guest=no
 create mask=0740
 directory mask=0750
 public=no

Note that the Samba configuration file can be checked with the testparm command.

Finally, set a password with sudo smbpasswd -a pi. This will create the Samba user pi.

This can be accessed from another computer on the network as \\hostname\share