eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.
http://mraa.io
MIT License
1.36k stars 613 forks source link

Added Raspberry Pi 400 to platforms #1051

Closed Chuckduey closed 3 years ago

Chuckduey commented 3 years ago

This adds Raspberry Pi 400 Desktop to src/arm/raspberrypi.c and include/arm/raspberrypi.h as mentioned in #1050 This is very much like the Pi 4 but the format of the CPU card is very different. A cable can be used to connect to the 40 pin header on the back of the keyboard. The pinout is the same as the Pi 4.

For Raspberry Pi 400 Desktop Raspberry Pi OS Dec. 2nd 2020 and newer is required.

to Install and build mraa:

sudo apt-get install cmake automake libpcre3-dev byacc flex swig3.0 git clone https://github.com/Chuckduey/mraa.git cd mraa mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make sudo make install mraa-gpio version mraa-gpio list

Regression testing: Revision : c03130 Version v2.2.0 on Raspberry Pi 400

Revision : d03114 Version v2.2.0 on Raspberry Pi 4 Model B

Revision : a03111 Version v2.2.0 on Raspberry Pi 4 Model B

Revision : a22082 Version v2.2.0 on Raspberry Pi 3 Model B

Signed-off-by: Chuckduey cduey@msn.com