Friday, May 29, 2020
(See the Raspberry Pi blog).
And it comes along with a beta-64 bit OS, named Raspi OS, that targets Raspberry Pis 3 and higher.
I tried it (on a Raspberry Pi 4, with 4 Gb of RAM), it works fine, and fast!
This beta version does not come with Java installed, but a simple sudo apt-get install default-jdk installs it (JDK 11) in a couple of minutes.
I cloned a repo (https://github.com/OlivierLD/raspberry-coffee.git) and built it without any problem or error.
Now, I might wait a bit longer to get a new Raspberry Pi. As it is now, it should be able to support 16 Gb of RM, I'll wait a bit, and see...
Anyway, that makes yet another good reason NOT to get a Mac.
Steve Jobs vs Eben Upton..., I vote for Eben Upton, biiiiiig time.
Friday, May 22, 2020
- We start from the colored image
- We turn it to gray
- We thresh it
- We resize it (smaller)
- We store it in a file, custom format
- We can then display the image on the led matrix (oled screen here)
// threshold Mat threshed = new Mat(); Imgproc.threshold(gray, threshed, 150, // 127, 255, 0);Tweaking the
150above) leads to different results.
The final result is stored in a binary file (
The matrix used here is 128x64 pixels big. The file will contain 64 lines of 2
longhas 64 bits, 2
longs make 128 bits, that's all we need to encode one line of 128 leds on the screen.
See the code in
Thursday, January 09, 2020
Just received the dAISy HAT from Wegmatt, it just works!
Whoever can click can do it.
And this was the opportunity to keep working on the AISParser, and I have also added a custom TCP Forwarder to the Multiplexer, along with an AIS filter on the regular TCP Forwarder.
This way, you can forward NMEA data on one port, and AIS data on another one. This is not necessary, but it can be nice to have.
Here is an example of a
yaml driving the Multiplexer:
# # MUX definition. # name: "With a GPS and AIS" context: with.http.server: true http.port: 9999 init.cache: true channels: - type: serial # GPS port: /dev/ttyUSB0 baudrate: 4800 verbose: false - type: serial # AIS port: /dev/ttyS0 baudrate: 38400 verbose: false forwarders: - type: tcp port: 7002 properties: no.ais.properties - type: tcp subclass: nmea.forwarders.AISTCPServer port: 7003 computers: - cls: nmea.computers.AISManager properties: ais.mgr.properties
And OpenCPN is happy in both cases.
See more details here.