epsilonrt / piduino

Arduino API on Pi boards, the best of both worlds !
https://epsilonrt.fr/2019/01/piduino/
GNU Lesser General Public License v3.0
29 stars 7 forks source link

Raspberry pi CM4 support #26

Open dolfje opened 1 year ago

dolfje commented 1 year ago

I'm busy with trying piduino for the Raspberry Pi CM4.

From what I read, it is almost the same as Raspberry 4b. So I'm trying to get it working.

I have already updated the database to the following:

board: 54|RaspberryPi Compute Module 4 (0xb03140)|2048|1.0|24|3|1|1|0|0 board_family: 24|RaspberryPi Compute Module 4|0|5 revision: 54|11546944

Now busy with checking if this works. So will update when I find incompatibilities.

dolfje commented 1 year ago

The CM4 has 5 serial ports, so https://github.com/epsilonrt/piduino/blob/8b791094fb501583dcf9096b4d09cbbbfdc381cc/include/piduino/arduino/HardwareSerial.h#L112 has to be changed.